]> granicus.if.org Git - clang/commitdiff
Iterate typeloc's for class bases.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 31 Jul 2010 23:26:36 +0000 (23:26 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 31 Jul 2010 23:26:36 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109961 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index 76a4ec567591103f82ca9376f467078fb53a5da6..4f36f359dd4e5ad062f91756d72c9aece9fdbc95 100644 (file)
@@ -1175,7 +1175,7 @@ bool RecursiveASTVisitor<Derived>::TraverseCXXRecordHelper(
     for (CXXRecordDecl::base_class_iterator I = D->bases_begin(),
                                             E = D->bases_end();
          I != E; ++I) {
-      TRY_TO(TraverseType(I->getType()));
+      TRY_TO(TraverseTypeLoc(I->getTypeSourceInfo()->getTypeLoc()));
     }
     // We don't traverse the friends or the conversions, as they are
     // already in decls_begin()/decls_end().