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 | 8bedb7dd3fcb868ad80c54e94e6fe6e2b04604ae (patch) | |
| tree | 896b72afb483af4a4c1250af77fd582b0d3848a6 /clang/lib | |
| parent | ef6d5933a66321865ca82a65a04490b84e260dbb (diff) | |
| download | bcm5719-llvm-8bedb7dd3fcb868ad80c54e94e6fe6e2b04604ae.tar.gz bcm5719-llvm-8bedb7dd3fcb868ad80c54e94e6fe6e2b04604ae.zip | |
Teach GRExprEngine::VisitLValue() about FloatingLiteral, ImaginaryLiteral, and CharacterLiteral. Fixes an assertion failure reported in PR 7675.
llvm-svn: 109719
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Checker/GRExprEngine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Checker/GRExprEngine.cpp b/clang/lib/Checker/GRExprEngine.cpp index 73fc9262605..9ee723eb7c5 100644 --- a/clang/lib/Checker/GRExprEngine.cpp +++ b/clang/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; |

