LLVMSharp
LLVMSharp copied to clipboard
Wrong signature of LLVM.DIBuilderCreateBasicType?
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