From: Aaron Ballman Date: Wed, 18 Oct 2017 12:11:58 +0000 (+0000) Subject: Silence -Wimplicit-fallthrough warnings with the generated code; NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b97bbcc56f87338a7607a101ed153118bf7477d;p=clang Silence -Wimplicit-fallthrough warnings with the generated code; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316075 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index c3d593b092..effabcc6cb 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -2794,7 +2794,7 @@ void EmitClangAttrHasAttrImpl(RecordKeeper &Records, raw_ostream &OS) { GenerateHasAttrSpellingStringSwitch(I->second, OS, Spelling, I->first); OS << "}"; } - OS << "\n}\n"; + OS << "\n} break;\n"; }; fn("CXX11", "CXX", CXX); fn("C2x", "C", C2x);