From: Alexander Kornienko Date: Mon, 7 Jan 2013 19:09:15 +0000 (+0000) Subject: Fixed a number of -Wcovered-switch-default diagnostics in tools/clang/include/clang... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=975b1203baeb04b13cdaa017b7fdd384f5adcad0;p=clang Fixed a number of -Wcovered-switch-default diagnostics in tools/clang/include/clang/AST/AttrDump.inc git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171768 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index 3651636e95..395347c122 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -549,11 +549,6 @@ namespace { } void writeDump(raw_ostream &OS) const { OS << " switch(SA->get" << getUpperName() << "()) {\n"; - OS << " default:\n"; - OS << " llvm_unreachable(\"Unknown " << getAttrName() << "Attr::" - << type << "!\");\n"; - OS << " break;\n"; - for (std::vector::const_iterator I = uniques.begin(), E = uniques.end(); I != E; ++I) { OS << " case " << getAttrName() << "Attr::" << *I << ":\n";