From 6e0209e74ef814aa27af2add01d22284817c3d73 Mon Sep 17 00:00:00 2001 From: David Laprell Date: Tue, 14 Jan 2020 12:29:06 +0100 Subject: fix: fabs() working on the wrong argument --- lib/Core/Executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 48252dbd..7fac4fa4 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -1420,7 +1420,7 @@ void Executor::executeCall(ExecutionState &state, KInstruction *ki, Function *f, break; case Intrinsic::fabs: { ref arg = - toConstant(state, eval(ki, 0, state).value, "floating point"); + toConstant(state, arguments[0], "floating point"); if (!fpWidthToSemantics(arg->getWidth())) return terminateStateOnExecError( state, "Unsupported intrinsic llvm.fabs call"); -- cgit 1.4.1