]> granicus.if.org Git - clang/commitdiff
RAV reunification: merge r162133 (visit the TypeLoc when RecursiveASTVisitor visits...
authorAlp Toker <alp@nuanti.com>
Sun, 18 May 2014 21:00:44 +0000 (21:00 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 18 May 2014 21:00:44 +0000 (21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209100 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DataRecursiveASTVisitor.h

index e326bd4af08ed4ee2da20cc0e27ff201a8ff5082..8462681a6b44e3c148caafb1a2b82dddf35ef3d5 100644 (file)
@@ -2129,7 +2129,9 @@ DEF_TRAVERSE_STMT(BlockExpr, {
   return true; // no child statements to loop through.
 })
 DEF_TRAVERSE_STMT(ChooseExpr, {})
-DEF_TRAVERSE_STMT(CompoundLiteralExpr, {})
+DEF_TRAVERSE_STMT(CompoundLiteralExpr, {
+  TRY_TO(TraverseTypeLoc(S->getTypeSourceInfo()->getTypeLoc()));
+})
 DEF_TRAVERSE_STMT(CXXBindTemporaryExpr, {})
 DEF_TRAVERSE_STMT(CXXBoolLiteralExpr, {})
 DEF_TRAVERSE_STMT(CXXDefaultArgExpr, {})