Auto merge of #117948 - aeubanks:dibuilder, r=durin42
llvm-wrapper: Pass newly added param to DIBuilder::createStaticMemberType() This was added in https://github.com/llvm/llvm-project/pull/72234. DW_TAG_member was the implicit default before. The LLVM change is quite sinister since due to weakly typed ints and default params, this was still successfully compiling against LLVM but was passing the wrong parameters.
This commit is contained in:
commit
6faa181015
1 changed files with 3 additions and 0 deletions
|
@ -983,6 +983,9 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateStaticMemberType(
|
|||
unwrapDI<DIType>(Ty),
|
||||
fromRust(Flags),
|
||||
unwrap<llvm::ConstantInt>(val),
|
||||
#if LLVM_VERSION_GE(18, 0)
|
||||
llvm::dwarf::DW_TAG_member,
|
||||
#endif
|
||||
AlignInBits
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue