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
@ -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…
Reference in New Issue
Block a user