From f30b81ca62bd8f6f1057c52e291620af134f9b8e Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 24 Jun 2010 22:12:33 +0000 Subject: Handle ConstantAggregateZero constants git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@106801 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Core/Executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Core') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index b12caec0..02abc75b 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -939,10 +939,10 @@ ref Executor::evalConstant(Constant *c) { return globalAddresses.find(gv)->second; } else if (isa(c)) { return Expr::createPointer(0); - } else if (isa(c)) { + } else if (isa(c) || isa(c)) { return ConstantExpr::create(0, getWidthForLLVMType(c->getType())); } else { - // Constant{AggregateZero,Array,Struct,Vector} + // Constant{Array,Struct,Vector} assert(0 && "invalid argument to evalConstant()"); } } -- cgit 1.4.1