summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.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/Sema/SemaChecking.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/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 27f03bd98f4..e6fa3727369 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -1421,7 +1421,8 @@ static DeclRefExpr* EvalVal(Expr *E) {
}
// Accesses to members are potential references to data on the stack.
- case Stmt::MemberExprClass: {
+ case Stmt::MemberExprClass:
+ case Stmt::CXXQualifiedMemberExprClass: {
MemberExpr *M = cast<MemberExpr>(E);
// Check for indirect access. We only want direct field accesses.
OpenPOWER on IntegriCloud