From: John McCall Date: Tue, 1 Mar 2016 02:09:20 +0000 (+0000) Subject: Add an llvm_unreachable back to the autogeneration of this covered switch. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f522ba3e9ba9520e2508ab0061390a55744cb62;p=clang Add an llvm_unreachable back to the autogeneration of this covered switch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262288 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index 8a854cafd8..96a3ea860f 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -2294,7 +2294,8 @@ void EmitClangAttrASTVisitor(RecordKeeper &Records, raw_ostream &OS) { << " return getDerived().Traverse" << R.getName() << "Attr(" << "cast<" << R.getName() << "Attr>(A));\n"; } - OS << " }\n"; // end case + OS << " }\n"; // end switch + OS << " llvm_unreachable(\"bad attribute kind\");\n"; OS << "}\n"; // end function OS << "#endif // ATTR_VISITOR_DECLS_ONLY\n"; }