Skip to content

Commit

Permalink
llvm-wrapper: Pass newly added param to DIBuilder::createEnumerationT…
Browse files Browse the repository at this point in the history
…ype()

Added in LLVM in llvm/llvm-project#72011.
  • Loading branch information
aeubanks committed Nov 15, 2023
1 parent 0b24479 commit 7cde2ce
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 7cde2ce

Please sign in to comment.