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()); } @@ -434,10 +437,6 @@ if (!T) { return; } - if (const LocInfoType *LIT = llvm::dyn_cast(T)) { - dumpTypeAsChild(LIT->getTypeSourceInfo()->getType()); - return; - } TypeVisitor::Visit(T); QualType SingleStepDesugar =