diff options
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r-- | lib/Core/Executor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 333eb563..c0d29272 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -2339,12 +2339,13 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) { #if LLVM_VERSION_CODE >= LLVM_VERSION(8, 0) const CallBase &cs = cast<CallBase>(*i); + Value *fp = cs.getCalledOperand(); #else const CallSite cs(i); + Value *fp = cs.getCalledValue(); #endif unsigned numArgs = cs.arg_size(); - Value *fp = cs.getCalledValue(); Function *f = getTargetFunction(fp, state); if (isa<InlineAsm>(fp)) { |