about summary refs log tree commit diff homepage
path: root/lib/Core/StatsTracker.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-02-12 22:54:14 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-02-12 22:54:14 +0000
commit211c714dede4960774fb8b20a75289e5aa4bae79 (patch)
tree3c6745b430dbeb070021ef3e559fd29fb6dd4323 /lib/Core/StatsTracker.cpp
parent6adac1d681f328b1737acfa38f221ce2f3b20ef1 (diff)
downloadklee-211c714dede4960774fb8b20a75289e5aa4bae79.tar.gz
Update for LLVM changes - there is no more "unwind" instruction.
Patch by arrowdodger!

git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@150354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/StatsTracker.cpp')
-rw-r--r--lib/Core/StatsTracker.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Core/StatsTracker.cpp b/lib/Core/StatsTracker.cpp
index f3eca268..e2fa0d35 100644
--- a/lib/Core/StatsTracker.cpp
+++ b/lib/Core/StatsTracker.cpp
@@ -669,7 +669,11 @@ void StatsTracker::computeReachableUncovered() {
           unsigned id = infos.getInfo(it).id;
           sm.setIndexedValue(stats::minDistToReturn, 
                              id, 
-                             isa<ReturnInst>(it) || isa<UnwindInst>(it));
+                             isa<ReturnInst>(it)
+#if LLVM_VERSION_CODE < LLVM_VERSION(3, 1)
+                             || isa<UnwindInst>(it)
+#endif
+                             );
         }
       }
     }