18 lines
886 B
Diff
18 lines
886 B
Diff
|
--- ./src/rustllvm/RustWrapper.cpp.orig 2020-05-08 10:35:50.338371466 +0000
|
||
|
+++ ./src/rustllvm/RustWrapper.cpp 2020-05-08 10:36:14.268765241 +0000
|
||
|
@@ -1328,8 +1328,13 @@
|
||
|
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), DstAlign, IsVolatile));
|
||
|
+ unwrap(Dst), unwrap(Val), unwrap(Size), MaybeAlign(DstAlign), IsVolatile));
|
||
|
+#else
|
||
|
+ return wrap(unwrap(B)->CreateMemSet( return wrap(unwrap(B)->CreateMemSet(
|
||
|
+ unwrap(Dst), unwrap(Val), unwrap(Size), DstAlign, IsVolatile)); unwrap(Dst), unwrap(Val), unwrap(Size), DstAlign, IsVolatile));
|
||
|
+#endif
|
||
|
}
|
||
|
|
||
|
extern "C" LLVMValueRef
|