Created
March 8, 2020 23:39
-
-
Save dfyz/8ed363de1fdd5f8b5fe7ab9acecd4ecc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp | |
index 90d24d20737..e3cf7001eba 100644 | |
--- a/src/rustllvm/PassWrapper.cpp | |
+++ b/src/rustllvm/PassWrapper.cpp | |
@@ -68,7 +68,7 @@ extern "C" void LLVMInitializePasses() { | |
extern "C" void LLVMTimeTraceProfilerInitialize() { | |
#if LLVM_VERSION_GE(9, 0) | |
- timeTraceProfilerInitialize(); | |
+ timeTraceProfilerInitialize(0, ""); | |
#endif | |
} | |
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp | |
index 49b6e1bfec3..7d62b5d5902 100644 | |
--- a/src/rustllvm/RustWrapper.cpp | |
+++ b/src/rustllvm/RustWrapper.cpp | |
@@ -1301,7 +1301,7 @@ extern "C" LLVMValueRef LLVMRustBuildMemSet(LLVMBuilderRef B, | |
LLVMValueRef Val, | |
LLVMValueRef Size, bool IsVolatile) { | |
return wrap(unwrap(B)->CreateMemSet( | |
- unwrap(Dst), unwrap(Val), unwrap(Size), DstAlign, IsVolatile)); | |
+ unwrap(Dst), unwrap(Val), unwrap(Size), MaybeAlign(DstAlign), IsVolatile)); | |
} | |
extern "C" LLVMValueRef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment