Index: lib/AST/ASTDumper.cpp =================================================================== --- lib/AST/ASTDumper.cpp +++ lib/AST/ASTDumper.cpp @@ -122,6 +122,9 @@ void VisitComplexType(const ComplexType *T) { dumpTypeAsChild(T->getElementType()); } + void VisitLocInfoType(const LocInfoType *T) { + dumpTypeAsChild(T->getTypeSourceInfo()->getType()); + } void VisitPointerType(const PointerType *T) { dumpTypeAsChild(T->getPointeeType()); } @@ -433,10 +436,6 @@ NodeDumper.Visit(T); if (!T) return; - if (const LocInfoType *LIT = llvm::dyn_cast(T)) { - dumpTypeAsChild(LIT->getTypeSourceInfo()->getType()); - return; - } TypeVisitor::Visit(T); QualType SingleStepDesugar =