about summary refs log tree commit diff homepage
path: root/lib/Core
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2016-12-23 16:38:21 +0000
committerDan Liew <delcypher@gmail.com>2017-02-13 22:07:13 +0000
commit950c823ddec56d59edb88e6ef81ba541aa5a34df (patch)
tree2ad5c5bb1c8ad4add59e19bf63e96e9c234e8424 /lib/Core
parent88e8a93bcf2cfd4bd2f7832205fa2998d3569358 (diff)
downloadklee-950c823ddec56d59edb88e6ef81ba541aa5a34df.tar.gz
Silenced two "control may reach end of non-void function [-Wreturn-type]" compiler warnings, one by adding an assert, and the other by refactoring the choose() function.
Diffstat (limited to 'lib/Core')
-rw-r--r--lib/Core/ExecutorUtil.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Core/ExecutorUtil.cpp b/lib/Core/ExecutorUtil.cpp
index 56f18e6b..b91b5dee 100644
--- a/lib/Core/ExecutorUtil.cpp
+++ b/lib/Core/ExecutorUtil.cpp
@@ -153,6 +153,11 @@ namespace klee {
     case Instruction::FCmp:
       assert(0 && "floating point ConstantExprs unsupported");
     }
+#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1)
+    llvm_unreachable("Unsupported expression in evalConstantExpr");
+#else
+    assert(0 && "Unsupported expression in evalConstantExpr");
+#endif
+    return op1;
   }
-
 }