Silence -Wimplicit-fallthrough warnings with the generated code; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 18 Oct 2017 12:11:58 +0000 (12:11 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 18 Oct 2017 12:11:58 +0000 (12:11 +0000)
llvm-svn: 316075

clang/utils/TableGen/ClangAttrEmitter.cpp

index c3d593b..effabcc 100644 (file)
@@ -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);