Skip to content

Commit f65552f

Browse files
author
Dylan McKay
committed
Update rustllvm to understand the new DIBulder::createBasicType API
This lets Rust work with the createBasicType API in LLVM 4.0. The alignment argument was dropped in D25073. - https://reviews.llvm.org/D25073
1 parent ea79852 commit f65552f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rustllvm/RustWrapper.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,10 @@ extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreateBasicType(
553553
unsigned Encoding) {
554554
return wrap(Builder->createBasicType(
555555
Name, SizeInBits,
556-
AlignInBits, Encoding));
556+
#if LLVM_VERSION_LE(3, 9)
557+
AlignInBits,
558+
#endif
559+
Encoding));
557560
}
558561

559562
extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreatePointerType(

0 commit comments

Comments
 (0)