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/Expr/ExprVisitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Expr/ExprVisitor.cpp') diff --git a/lib/Expr/ExprVisitor.cpp b/lib/Expr/ExprVisitor.cpp index c81199d7..cf75974a 100644 --- a/lib/Expr/ExprVisitor.cpp +++ b/lib/Expr/ExprVisitor.cpp @@ -91,6 +91,8 @@ ref ExprVisitor::visitActual(const ref &e) { } switch(res.kind) { + default: + assert(0 && "invalid kind"); case Action::DoChildren: { bool rebuild = false; ref e(&ep), kids[8]; @@ -117,8 +119,6 @@ ref ExprVisitor::visitActual(const ref &e) { return e; case Action::ChangeTo: return res.argument; - default: - assert(0 && "invalid kind"); } } } -- cgit 1.4.1