diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-30 16:31:08 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-30 16:31:08 +0000 |
commit | e33c116bdf89b683200fabdd9d4e459e6ddf0b8a (patch) | |
tree | 04221005bb7f5958f2b216a779efe020e620af3e /clang/lib/AST/StmtPrinter.cpp | |
parent | ebc1bb277ccc583414b5695e10a708389a003b01 (diff) | |
download | bcm5719-llvm-e33c116bdf89b683200fabdd9d4e459e6ddf0b8a.tar.gz bcm5719-llvm-e33c116bdf89b683200fabdd9d4e459e6ddf0b8a.zip |
Nasty rewriter bug which turns out to have an easy fix in
rewriting a c-style cast expression in statement printer.
Fixes radar 8143056.
llvm-svn: 107289
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 9bef49c3984..c259b4c951a 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -802,7 +802,7 @@ void StmtPrinter::VisitExplicitCastExpr(ExplicitCastExpr *) { assert(0 && "ExplicitCastExpr is an abstract class"); } void StmtPrinter::VisitCStyleCastExpr(CStyleCastExpr *Node) { - OS << "(" << Node->getType().getAsString() << ")"; + OS << "(" << Node->getType().getAsString(Policy) << ")"; PrintExpr(Node->getSubExpr()); } void StmtPrinter::VisitCompoundLiteralExpr(CompoundLiteralExpr *Node) { |