about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/Executor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index 0603d148..e3186bbf 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -1851,7 +1851,10 @@ void Executor::executeCall(ExecutionState &state, KInstruction *ki, Function *f,
           offsets[k] = size;
           size += Expr::getMinBytesForWidth(argWidth);
         } else {
-#if LLVM_VERSION_CODE > LLVM_VERSION(4, 0)
+#if LLVM_VERSION_CODE >= LLVM_VERSION(11, 0)
+          MaybeAlign ma = cs.getParamAlign(k);
+          unsigned alignment = ma ? ma->value() : 0;
+#elif LLVM_VERSION_CODE > LLVM_VERSION(4, 0)
           unsigned alignment = cs.getParamAlignment(k);
 #else
           // getParamAlignment() is buggy for LLVM <= 4, so we instead