Add an llvm_unreachable back to the autogeneration of this covered switch.

llvm-svn: 262288
This commit is contained in:
John McCall 2016-03-01 02:09:20 +00:00
parent 9b0a801797
commit 5d7cf778e4
1 changed files with 2 additions and 1 deletions

View File

@ -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";
}