about summary refs log tree commit diff homepage
path: root/lib/Core/Executor.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-15 20:37:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-15 20:37:05 +0000
commit592f0bcd15cda958270ae7224b5bbf3e2f4201a5 (patch)
tree2861f471fd305d06dcf26ddde9ff1592761d1843 /lib/Core/Executor.cpp
parentd786ba65b69c57fec0804d4a529682844ac2d411 (diff)
downloadklee-592f0bcd15cda958270ae7224b5bbf3e2f4201a5.tar.gz
[llvm up] Update for LLVM TOT changes.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/Executor.cpp')
-rw-r--r--lib/Core/Executor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index a921511e..67459650 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -1378,9 +1378,10 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) {
     if (ConstantExpr *CE = dyn_cast<ConstantExpr>(cond)) {
       // Somewhat gross to create these all the time, but fine till we
       // switch to an internal rep.
+      const llvm::IntegerType *Ty = 
+        cast<IntegerType>(si->getCondition()->getType());
       ConstantInt *ci = 
-        ConstantInt::get(cast<IntegerType>(si->getCondition()->getType()),
-                         CE->getZExtValue());
+        getGlobalContext().getConstantInt(Ty, CE->getZExtValue());
       unsigned index = si->findCaseValue(ci);
       transferToBasicBlock(si->getSuccessor(index), si->getParent(), state);
     } else {