diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-07-29 01:31:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-07-29 01:31:59 +0000 |
commit | 741b9be084a61b4d5eb9b626f7f75949cfda3b11 (patch) | |
tree | 45fcdb57d4080e3499164c02c474864ceea4b3ae /lib/Checker/GRExprEngine.cpp | |
parent | a629ea42f6bc095190db2f3932b60a0be14f3d34 (diff) |
Teach GRExprEngine::VisitLValue() about FloatingLiteral, ImaginaryLiteral, and CharacterLiteral. Fixes an assertion failure reported in PR 7675.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index 73fc926260..9ee723eb7c 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -1058,6 +1058,9 @@ void GRExprEngine::VisitLValue(const Expr* Ex, ExplodedNode* Pred, // In C++, binding an rvalue to a reference requires to create an object. case Stmt::CXXBoolLiteralExprClass: case Stmt::IntegerLiteralClass: + case Stmt::CharacterLiteralClass: + case Stmt::FloatingLiteralClass: + case Stmt::ImaginaryLiteralClass: CreateCXXTemporaryObject(Ex, Pred, Dst); return; |