diff options
author | Anna Zaks <ganna@apple.com> | 2012-05-18 22:47:43 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-05-18 22:47:43 +0000 |
commit | 719b429e3ed660cfd9cce88397b29c695a25fa50 (patch) | |
tree | 0213a5a41b8a36e0d381e8095c4cbbca1239bb73 /lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | a38cb2ccb1c501f3cf421396262da80008d62e87 (diff) |
[analyzer] Fix a c++11 crash: xvalues can be locations (VisitMemberExpr)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp index 97a8cefd13..dcc79a543f 100644 --- a/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -1537,7 +1537,7 @@ void ExprEngine::VisitMemberExpr(const MemberExpr *M, ExplodedNode *Pred, // For all other cases, compute an lvalue. SVal L = state->getLValue(field, baseExprVal); - if (M->isLValue()) + if (M->isGLValue()) Bldr.generateNode(M, Pred, state->BindExpr(M, LCtx, L), false, 0, ProgramPoint::PostLValueKind); else { |