forked from OSchip/llvm-project
Pass an ASTContext into Stmt::printPretty.
llvm-svn: 72612
This commit is contained in:
parent
0905f14e62
commit
c4fc839c57
|
@ -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 + "]";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue