Skip to content

Commit 984898d

Browse files
committed
[llvm-wrapper] Pass newly added param to DIBuilder::createStaticMemberType()
This was added in llvm/llvm-project#72234. DW_TAG_member was the implicit default before.
1 parent 0b24479 commit 984898d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,9 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateStaticMemberType(
983983
unwrapDI<DIType>(Ty),
984984
fromRust(Flags),
985985
unwrap<llvm::ConstantInt>(val),
986+
#if LLVM_VERSION_GE(17, 0)
987+
llvm::dwarf::DW_TAG_member,
988+
#endif
986989
AlignInBits
987990
));
988991
}

0 commit comments

Comments
 (0)