LLVMSharp icon indicating copy to clipboard operation
LLVMSharp copied to clipboard

Wrong signature of LLVM.DIBuilderCreateBasicType?

Open IJzerbaard opened this issue 6 years ago • 0 comments

If I call this as it is, for example LLVM.DIBuilderCreateBasicType(dibuilder, "i32", 32, 32, 5), and then do DumpModule, I can see that the string has become 32 characters long and has eaten some junk. The length of the string depends on the value of the third argument. Inserting an argument int nameLength after the name worked around this issue

IJzerbaard avatar Nov 16 '18 17:11 IJzerbaard