Fix empty declaration printing.

Don't print the semicolon when visiting an empty declaration because the semicolon
will be printed as a terminator later.

llvm-svn: 176035
This commit is contained in:
Michael Han 2013-02-25 18:40:11 +00:00
parent f9e9a9f41b
commit dbe8890be2
2 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,6 @@ void DeclPrinter::VisitNamespaceAliasDecl(NamespaceAliasDecl *D) {
void DeclPrinter::VisitEmptyDecl(EmptyDecl *D) {
prettyPrintAttributes(D);
Out << ";\n";
}
void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {

View File

@ -40,3 +40,4 @@ const char *p9 = 0x42e3F_fritz;
const char *p10 = 3.300e+15_fritz;
// CHECK: ;
;
// CHECK-NOT: ;