about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2015-08-17 14:02:30 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2015-08-17 14:02:30 +0100
commitefc5bde08a611ffd7d0065a2a10bbb6e13ba66d2 (patch)
tree5f130a36494fa09e17fab41bc3ba96548835863b /lib
parenta5ce07251ca61ef84288b67ca13279c1c463c263 (diff)
parentdff4069042e6f7b4bc7211b8e9ba3377ee01c33c (diff)
downloadklee-efc5bde08a611ffd7d0065a2a10bbb6e13ba66d2.tar.gz
Merge pull request #239 from yotann/master
Fix assertion failure in getDirectCallTarget
Diffstat (limited to 'lib')
-rw-r--r--lib/Module/ModuleUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp
index 5f7ed35e..1cf9c35c 100644
--- a/lib/Module/ModuleUtil.cpp
+++ b/lib/Module/ModuleUtil.cpp
@@ -446,7 +446,7 @@ Function *klee::getDirectCallTarget(CallSite cs) {
     return f;
   } else if (llvm::ConstantExpr *ce = dyn_cast<llvm::ConstantExpr>(v)) {
     if (ce->getOpcode()==Instruction::BitCast)
-      if (Function *f = dyn_cast<Function>(ce->getOperand(0)))
+      if (Function *f = dyn_cast<Function>(ce->getOperand(0)->stripPointerCasts()))
         return f;
 
     // NOTE: This assert may fire, it isn't necessarily a problem and