diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2010-06-24 22:12:33 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2010-06-24 22:12:33 +0000 |
commit | f30b81ca62bd8f6f1057c52e291620af134f9b8e (patch) | |
tree | 6aa71b8f4ccc7f8237fb9e3ace01f48a20938eea | |
parent | 717c804da48ee71f4b5aeee3ac0ba6c62a537224 (diff) | |
download | klee-f30b81ca62bd8f6f1057c52e291620af134f9b8e.tar.gz |
Handle ConstantAggregateZero constants
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@106801 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Core/Executor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<klee::ConstantExpr> Executor::evalConstant(Constant *c) { return globalAddresses.find(gv)->second; } else if (isa<ConstantPointerNull>(c)) { return Expr::createPointer(0); - } else if (isa<UndefValue>(c)) { + } else if (isa<UndefValue>(c) || isa<ConstantAggregateZero>(c)) { return ConstantExpr::create(0, getWidthForLLVMType(c->getType())); } else { - // Constant{AggregateZero,Array,Struct,Vector} + // Constant{Array,Struct,Vector} assert(0 && "invalid argument to evalConstant()"); } } |