From bad37858aef8910195a9c75f2892a09a032424b7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 2 Apr 2008 05:06:23 +0000 Subject: [PATCH] print cvr qualifiers on simplified typedefs git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49074 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/StmtDumper.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/AST/StmtDumper.cpp b/lib/AST/StmtDumper.cpp index d813899b53..dd7e2b320d 100644 --- a/lib/AST/StmtDumper.cpp +++ b/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(T)) - fprintf(F, ":'%s'", TDT->LookThroughTypedefs().getAsString().c_str()); + if (TypedefType *TDT = dyn_cast(T)) { + QualType Simplified = + TDT->LookThroughTypedefs().getQualifiedType(T.getCVRQualifiers()); + fprintf(F, ":'%s'", Simplified.getAsString().c_str()); + } } void DumpStmt(const Stmt *Node) { Indent(); -- 2.40.0