forked from OSchip/llvm-project
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:
parent
f9e9a9f41b
commit
dbe8890be2
|
@ -726,7 +726,6 @@ void DeclPrinter::VisitNamespaceAliasDecl(NamespaceAliasDecl *D) {
|
|||
|
||||
void DeclPrinter::VisitEmptyDecl(EmptyDecl *D) {
|
||||
prettyPrintAttributes(D);
|
||||
Out << ";\n";
|
||||
}
|
||||
|
||||
void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
|
||||
|
|
|
@ -40,3 +40,4 @@ const char *p9 = 0x42e3F_fritz;
|
|||
const char *p10 = 3.300e+15_fritz;
|
||||
// CHECK: ;
|
||||
;
|
||||
// CHECK-NOT: ;
|
||||
|
|
Loading…
Reference in New Issue