forked from OSchip/llvm-project
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:
parent
8fda6749aa
commit
95cd5c6b84
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue