pretty print exprs in stmt contexts with a trailing semicolon.

llvm-svn: 39531
This commit is contained in:
Chris Lattner 2007-05-30 17:57:36 +00:00
parent 208ae96a8c
commit fc068c15d9
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ namespace {
// If this is an expr used in a stmt context, indent and newline it.
Indent();
S->visit(*this);
OS << "\n";
OS << ";\n";
} else if (S) {
S->visit(*this);
} else {