Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6faa181

Browse files
committedNov 16, 2023
Auto merge of #117948 - aeubanks:dibuilder, r=durin42
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. 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.
2 parents 9144d51 + e2c3e94 commit 6faa181

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

Lines changed: 3 additions & 0 deletions
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(18, 0)
987+
llvm::dwarf::DW_TAG_member,
988+
#endif
986989
AlignInBits
987990
));
988991
}

0 commit comments

Comments
 (0)
Please sign in to comment.