]> granicus.if.org Git - clang/commitdiff
Pass an ASTContext into Stmt::printPretty.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 30 May 2009 05:32:46 +0000 (05:32 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 30 May 2009 05:32:46 +0000 (05:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72612 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtPrinter.cpp

index 6d641cf2d912fbd5d7c3d7c71795d45f5dcbee28..594b98f863e8b926711d345d688a5e9964543ad2 100644 (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 + "]";
   }