Per Daniel's suggestion, remove default case from switch statement to make

uncaught language cases a compile warning instead of a runtime error.

llvm-svn: 67325
This commit is contained in:
Ted Kremenek 2009-03-19 19:02:20 +00:00
parent 8fda6749aa
commit 95cd5c6b84
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK,
if (LangStd == lang_unspecified) {
// Based on the base language, pick one.
switch (LK) {
default: assert(0 && "Unknown base language");
case lang_unspecified: assert(0 && "Unknown base language");
case langkind_c:
case langkind_asm_cpp:
case langkind_c_cpp: