about summary refs log tree commit diff homepage
path: root/lib/Core
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2016-04-08 14:56:36 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2016-04-08 14:56:36 +0100
commit5bbf240f342212ae0c29c37132ae2aa3f821f701 (patch)
tree64aeaa1daa5783094727960fd58b6d0be57d2f9b /lib/Core
parent386d972fbbb6064eff394c687d427d4385f95716 (diff)
downloadklee-5bbf240f342212ae0c29c37132ae2aa3f821f701.tar.gz
Remove computation of ``isLocal`` that is always true when handling
AllocaInst.
Diffstat (limited to 'lib/Core')
-rw-r--r--lib/Core/Executor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index 47c1be02..3b2a860e 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -1926,8 +1926,7 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) {
       count = Expr::createZExtToPointerWidth(count);
       size = MulExpr::create(size, count);
     }
-    bool isLocal = i->getOpcode()==Instruction::Alloca;
-    executeAlloc(state, size, isLocal, ki);
+    executeAlloc(state, size, true, ki);
     break;
   }