Skip to content

Instantly share code, notes, and snippets.

@dfyz
Created March 8, 2020 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfyz/8ed363de1fdd5f8b5fe7ab9acecd4ecc to your computer and use it in GitHub Desktop.
Save dfyz/8ed363de1fdd5f8b5fe7ab9acecd4ecc to your computer and use it in GitHub Desktop.
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