Skip to content

Commit

Permalink
Auto merge of #117954 - aeubanks:dibuilder2, r=durin42
Browse files Browse the repository at this point in the history
llvm-wrapper: Pass newly added param to DIBuilder::createEnumerationType()

Added in LLVM in llvm/llvm-project#72011.
  • Loading branch information
bors committed Nov 16, 2023
2 parents 6b771f6 + 7cde2ce commit 9144d51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,11 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateEnumerationType(
unwrapDI<DIDescriptor>(Scope), StringRef(Name, NameLen),
unwrapDI<DIFile>(File), LineNumber,
SizeInBits, AlignInBits, DINodeArray(unwrapDI<MDTuple>(Elements)),
unwrapDI<DIType>(ClassTy), "", IsScoped));
unwrapDI<DIType>(ClassTy),
#if LLVM_VERSION_GE(18, 0)
/* RunTimeLang */ 0,
#endif
"", IsScoped));
}

extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateUnionType(
Expand Down

0 comments on commit 9144d51

Please sign in to comment.