summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-05-18 22:47:43 +0000
committerAnna Zaks <ganna@apple.com>2012-05-18 22:47:43 +0000
commit457ace7611d82047265f718cf1ea3f67c5d7b70f (patch)
tree924c82848e43329b35b03a2f6759252f3472140a /clang/lib
parentb34366091413a8021e21bd7ae1656bf74d1ef54c (diff)
downloadbcm5719-llvm-457ace7611d82047265f718cf1ea3f67c5d7b70f.tar.gz
bcm5719-llvm-457ace7611d82047265f718cf1ea3f67c5d7b70f.zip
[analyzer] Fix a c++11 crash: xvalues can be locations (VisitMemberExpr)
llvm-svn: 157082
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 97a8cefd13a..dcc79a543f3 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud