about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-03 03:05:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-03 03:05:04 +0000
commit520fa11b375e112fa4caeef7ae9ed0e82cca4378 (patch)
treee51b2d057fd6fc31e1ef79712bf59eb65600b94c
parent9fbd39da947d7664d9905677c03dd12f548ebf05 (diff)
downloadklee-520fa11b375e112fa4caeef7ae9ed0e82cca4378.tar.gz
Remove a usage of the direct ref<Expr> constructor that I missed.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72750 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/klee/util/ExprVisitor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/klee/util/ExprVisitor.h b/include/klee/util/ExprVisitor.h
index 8f8617e3..d17cb4d8 100644
--- a/include/klee/util/ExprVisitor.h
+++ b/include/klee/util/ExprVisitor.h
@@ -23,7 +23,7 @@ namespace klee {
     private:
       //      Action() {}
       Action(Kind _kind) 
-        : kind(_kind), argument(0,Expr::Bool) {}
+        : kind(_kind), argument(ConstantExpr::alloc(0, Expr::Bool)) {}
       Action(Kind _kind, const ref<Expr> &_argument) 
         : kind(_kind), argument(_argument) {}
 
@@ -33,7 +33,9 @@ namespace klee {
       Kind kind;
       ref<Expr> argument;
 
-      static Action changeTo(const ref<Expr> &expr) { return Action(ChangeTo,expr); }
+      static Action changeTo(const ref<Expr> &expr) { 
+        return Action(ChangeTo,expr); 
+      }
       static Action doChildren() { return Action(DoChildren); }
       static Action skipChildren() { return Action(SkipChildren); }
     };