Pass an ASTContext into Stmt::printPretty.

llvm-svn: 72612
This commit is contained in:
Eli Friedman 2009-05-30 05:32:46 +00:00
parent 0905f14e62
commit c4fc839c57
1 changed files with 1 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ void StmtPrinter::VisitCXXNewExpr(CXXNewExpr *E) {
std::string TypeS;
if (Expr *Size = E->getArraySize()) {
llvm::raw_string_ostream s(TypeS);
Size->printPretty(s, Helper, Policy);
Size->printPretty(s, Context, Helper, Policy);
s.flush();
TypeS = "[" + TypeS + "]";
}