From e6a0a756a3947c4809450fd87c65d883efd3077f Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Sun, 26 Apr 2020 03:34:28 +0000 Subject: Sun Apr 26 03:34:28 UTC 2020 d/rust-1.43.0-x86_64-2.txz: Rebuilt. Patched and recompiled with the system LLVM 10 instead of the bundled LLVM 9. --- ....497f879b1e24c369362bcd821959ffabc50a8a31.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 source/d/rust/rust.llvm10.497f879b1e24c369362bcd821959ffabc50a8a31.patch (limited to 'source/d/rust/rust.llvm10.497f879b1e24c369362bcd821959ffabc50a8a31.patch') diff --git a/source/d/rust/rust.llvm10.497f879b1e24c369362bcd821959ffabc50a8a31.patch b/source/d/rust/rust.llvm10.497f879b1e24c369362bcd821959ffabc50a8a31.patch new file mode 100644 index 000000000..972cdf608 --- /dev/null +++ b/source/d/rust/rust.llvm10.497f879b1e24c369362bcd821959ffabc50a8a31.patch @@ -0,0 +1,28 @@ +From 497f879b1e24c369362bcd821959ffabc50a8a31 Mon Sep 17 00:00:00 2001 +From: Nikita Popov +Date: Mon, 2 Mar 2020 22:37:55 +0100 +Subject: [PATCH] Update CreateMemSet() usage for LLVM 10 + +--- + src/rustllvm/RustWrapper.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp +index 25cfee3373dc4..799adb418822d 100644 +--- a/src/rustllvm/RustWrapper.cpp ++++ b/src/rustllvm/RustWrapper.cpp +@@ -1333,8 +1333,13 @@ extern "C" LLVMValueRef LLVMRustBuildMemSet(LLVMBuilderRef B, + LLVMValueRef Dst, unsigned DstAlign, + LLVMValueRef Val, + LLVMValueRef Size, bool IsVolatile) { ++#if LLVM_VERSION_GE(10, 0) ++ return wrap(unwrap(B)->CreateMemSet( ++ unwrap(Dst), unwrap(Val), unwrap(Size), MaybeAlign(DstAlign), IsVolatile)); ++#else + return wrap(unwrap(B)->CreateMemSet( + unwrap(Dst), unwrap(Val), unwrap(Size), DstAlign, IsVolatile)); ++#endif + } + + extern "C" LLVMValueRef + -- cgit v1.2.3-65-gdbad