diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-07-17 20:24:05 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-07-17 20:24:05 +0000 |
commit | 251c449b280eb845017a6c022ed7189d17c63d49 (patch) | |
tree | 27bb722dc9e9946b298b84baf9c56648a007c4f8 /lib/Sema/SemaExpr.cpp | |
parent | e9af3e66cffa1b3d6dc75433b8a9673ecae33044 (diff) |
Handle the case where the base type is not dependent, but the derived one is.
Fixes pr13353.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 915663e622..177165c79e 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/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; |