From 6e1a345838c8feb500ba8887b3ba5a1c1d0b33dc Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 30 May 2009 05:32:46 +0000 Subject: [PATCH] Pass an ASTContext into Stmt::printPretty. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72612 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/StmtPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp index 6d641cf2d9..594b98f863 100644 --- a/lib/AST/StmtPrinter.cpp +++ b/lib/AST/StmtPrinter.cpp @@ -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 + "]"; } -- 2.40.0