diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-02 17:01:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-02 17:01:00 +0000 |
commit | 4aea9d3d47e7e47630704fdf6628221fa45f6151 (patch) | |
tree | 5e74319cdcc91f362f6d27bd4befcb5c42131d66 /unittests/Expr | |
parent | 1016ee0df2a459881d6f9930f7b72929e8bdc8b8 (diff) | |
download | klee-4aea9d3d47e7e47630704fdf6628221fa45f6151.tar.gz |
Use ConstantExpr::alloc instead of ref<Expr> directly
- The "constant optimization" embedded inside ref<Expr> is going away. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Expr')
-rw-r--r-- | unittests/Expr/ExprTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Expr/ExprTest.cpp b/unittests/Expr/ExprTest.cpp index 9220c53e..72b37ab2 100644 --- a/unittests/Expr/ExprTest.cpp +++ b/unittests/Expr/ExprTest.cpp @@ -22,9 +22,9 @@ ref<Expr> getConstant(int value, Expr::Width width) { } TEST(ExprTest, BasicConstruction) { - EXPECT_EQ(ref<Expr>(0, 32), - SubExpr::create(ref<Expr>(10, 32), - ref<Expr>(10, 32))); + EXPECT_EQ(ConstantExpr::alloc(0, 32), + SubExpr::create(ConstantExpr::alloc(10, 32), + ConstantExpr::alloc(10, 32))); } TEST(ExprTest, ConcatExtract) { |