From fe42c702fc0a15090941ff6565f0d17f94ba8d02 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 5 Jun 2009 06:15:06 +0000 Subject: Clean up a number of unused variable warnings when building w/o asserts. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72924 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Core/ExecutorUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Core/ExecutorUtil.cpp') diff --git a/lib/Core/ExecutorUtil.cpp b/lib/Core/ExecutorUtil.cpp index 62aa45db..1e346e89 100644 --- a/lib/Core/ExecutorUtil.cpp +++ b/lib/Core/ExecutorUtil.cpp @@ -45,6 +45,9 @@ Executor::evalConstantExpr(llvm::ConstantExpr *ce) { if (numOperands > 2) op3 = evalConstant(ce->getOperand(2)); switch (ce->getOpcode()) { + default : + assert(0 && "unknown ConstantExpr type"); + case Instruction::Trunc: return ExtractExpr::createByteOff(op1, 0, Expr::getWidthForLLVMType(type)); @@ -135,9 +138,6 @@ Executor::evalConstantExpr(llvm::ConstantExpr *ce) { case Instruction::FPToSI: case Instruction::FCmp: assert(0 && "floating point ConstantExprs unsupported"); - - default : - assert(0 && "unknown ConstantExpr type"); } } -- cgit 1.4.1