[cfe-commits] r72612 - /cfe/trunk/lib/AST/StmtPrinter.cpp

Eli Friedman eli.friedman at gmail.com
Fri May 29 22:32:47 PDT 2009


Author: efriedma
Date: Sat May 30 00:32:46 2009
New Revision: 72612

URL: http://llvm.org/viewvc/llvm-project?rev=72612&view=rev
Log:
Pass an ASTContext into Stmt::printPretty.


Modified:
    cfe/trunk/lib/AST/StmtPrinter.cpp

Modified: cfe/trunk/lib/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtPrinter.cpp?rev=72612&r1=72611&r2=72612&view=diff

==============================================================================
--- cfe/trunk/lib/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/lib/AST/StmtPrinter.cpp Sat May 30 00:32:46 2009
@@ -1029,7 +1029,7 @@
   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 + "]";
   }





More information about the cfe-commits mailing list