r316075 - Silence -Wimplicit-fallthrough warnings with the generated code; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 05:11:59 PDT 2017


Author: aaronballman
Date: Wed Oct 18 05:11:58 2017
New Revision: 316075

URL: http://llvm.org/viewvc/llvm-project?rev=316075&view=rev
Log:
Silence -Wimplicit-fallthrough warnings with the generated code; NFC.

Modified:
    cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp

Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp?rev=316075&r1=316074&r2=316075&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Wed Oct 18 05:11:58 2017
@@ -2794,7 +2794,7 @@ void EmitClangAttrHasAttrImpl(RecordKeep
       GenerateHasAttrSpellingStringSwitch(I->second, OS, Spelling, I->first);
       OS << "}";
     }
-    OS << "\n}\n";
+    OS << "\n} break;\n";
   };
   fn("CXX11", "CXX", CXX);
   fn("C2x", "C", C2x);




More information about the cfe-commits mailing list