未验证 提交 00764d43 编写于 作者: M Michal Strehovský 提交者: GitHub

Use UTF-8 for file path in ObjWriter (#66974)

LLVM already assumes the `char*` it receives is UTF-8. Fixes #66913.
上级 2f21e533
......@@ -80,7 +80,7 @@ public class ObjectWriter : IDisposable, ITypesDebugInfoWriter
#endif
[DllImport(NativeObjectWriterFileName)]
private static extern IntPtr InitObjWriter(string objectFilePath, string triple = null);
private static extern IntPtr InitObjWriter([MarshalAs(UnmanagedType.LPUTF8Str)] string objectFilePath, string triple = null);
[DllImport(NativeObjectWriterFileName)]
private static extern void FinishObjWriter(IntPtr objWriter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册