diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/StmtDumper.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/AST/StmtDumper.cpp b/clang/lib/AST/StmtDumper.cpp index d813899b530..dd7e2b320d4 100644 --- a/clang/lib/AST/StmtDumper.cpp +++ b/clang/lib/AST/StmtDumper.cpp @@ -88,8 +88,11 @@ namespace { // If the type is directly a typedef, strip off typedefness to give at // least one level of concreteness. - if (TypedefType *TDT = dyn_cast<TypedefType>(T)) - fprintf(F, ":'%s'", TDT->LookThroughTypedefs().getAsString().c_str()); + if (TypedefType *TDT = dyn_cast<TypedefType>(T)) { + QualType Simplified = + TDT->LookThroughTypedefs().getQualifiedType(T.getCVRQualifiers()); + fprintf(F, ":'%s'", Simplified.getAsString().c_str()); + } } void DumpStmt(const Stmt *Node) { Indent(); |

