summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-07-17 20:24:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-07-17 20:24:05 +0000
commit60a2bba9760a52dfc6f5256c5130580e6bbf519e (patch)
treec6e1f48a954f98a85068d206ac14b4fa65c23c39 /clang/lib/Sema
parentb9cafbb509e218c6dc631f00ad53fea9b8918540 (diff)
downloadbcm5719-llvm-60a2bba9760a52dfc6f5256c5130580e6bbf519e.tar.gz
bcm5719-llvm-60a2bba9760a52dfc6f5256c5130580e6bbf519e.zip
Handle the case where the base type is not dependent, but the derived one is.
Fixes pr13353.cpp. llvm-svn: 160393
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 915663e6221..177165c79ef 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -10893,8 +10893,6 @@ static void MarkExprReferenced(Sema &SemaRef, SourceLocation Loc,
if (!MD)
return;
const Expr *Base = ME->getBase();
- if (Base->getType()->isDependentType())
- return;
const CXXRecordDecl *MostDerivedClassDecl = Base->getBestDynamicClassType();
if (!MostDerivedClassDecl)
return;
OpenPOWER on IntegriCloud