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-25 01:08:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 01:08:15 +0000
commit6fdbb198e201ae935e19fb824a88f168f07c928a (patch)
tree97b6f1232c1ceaf885fd55d26644f2c7bf7f0e0c /lib/Core/Executor.cpp
parent561d694dc23e162bed0fef9aa1e50202d47c9ab2 (diff)
downloadklee-6fdbb198e201ae935e19fb824a88f168f07c928a.tar.gz
(llvm up) Update for API changes.
 - This dance is getting old.


git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/Executor.cpp')
-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 67459650..df9c5b49 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -1380,8 +1380,7 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) {
       // switch to an internal rep.
       const llvm::IntegerType *Ty = 
         cast<IntegerType>(si->getCondition()->getType());
-      ConstantInt *ci = 
-        getGlobalContext().getConstantInt(Ty, CE->getZExtValue());
+      ConstantInt *ci = ConstantInt::get(Ty, CE->getZExtValue());
       unsigned index = si->findCaseValue(ci);
       transferToBasicBlock(si->getSuccessor(index), si->getParent(), state);
     } else {