aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/RecursiveASTVisitor.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h
index e87cfbb8b0..6110aab339 100644
--- a/include/clang/AST/RecursiveASTVisitor.h
+++ b/include/clang/AST/RecursiveASTVisitor.h
@@ -748,9 +748,12 @@ DEF_TRAVERSE_TYPE(ObjCObjectPointerType, {
return true; \
}
-DEF_TRAVERSE_TYPELOC(QualifiedTypeLoc, {
- TRY_TO(TraverseTypeLoc(TL.getUnqualifiedLoc()));
- })
+template<typename Derived> \
+bool RecursiveASTVisitor<Derived>::TraverseQualifiedTypeLoc(
+ QualifiedTypeLoc TL) {
+ // Move this over to the 'main' typeloc tree.
+ return TraverseTypeLoc(TL.getUnqualifiedLoc());
+}
DEF_TRAVERSE_TYPELOC(BuiltinTypeLoc, { })