summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-26 22:36:53 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-26 22:36:53 +0000
commitc190523d7a3a93d37c4a5bb612a928cfe3e6957a (patch)
tree859b74be137cd5a2e88abd0250aee38cd7e0fcf7 /clang/lib/Analysis/GRExprEngine.cpp
parentb60d87c5172e402bb804dbd7bf603a9b4865663b (diff)
downloadbcm5719-llvm-c190523d7a3a93d37c4a5bb612a928cfe3e6957a.tar.gz
bcm5719-llvm-c190523d7a3a93d37c4a5bb612a928cfe3e6957a.zip
When a member reference expression includes a qualifier on the member
name, e.g., x->Base::f() retain the qualifier (and its source range information) in a new subclass of MemberExpr called CXXQualifiedMemberExpr. Provide construction, transformation, profiling, printing, etc., for this new expression type. When a virtual function is called via a qualified name, don't emit a virtual call. Instead, call that function directly. Mike, could you add a CodeGen test for this, too? llvm-svn: 80167
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 3abaf552d8e..600c52c5b09 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/lib/Analysis/GRExprEngine.cpp
@@ -408,6 +408,7 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) {
break;
case Stmt::MemberExprClass:
+ case Stmt::CXXQualifiedMemberExprClass:
VisitMemberExpr(cast<MemberExpr>(S), Pred, Dst, false);
break;
@@ -515,6 +516,7 @@ void GRExprEngine::VisitLValue(Expr* Ex, ExplodedNode* Pred,
return;
case Stmt::MemberExprClass:
+ case Stmt::CXXQualifiedMemberExprClass:
VisitMemberExpr(cast<MemberExpr>(Ex), Pred, Dst, true);
return;
OpenPOWER on IntegriCloud