From 95cd5c6b8420c7ebd99f5ce314657dcb150fa4a8 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 19 Mar 2009 19:02:20 +0000 Subject: [PATCH] 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 --- clang/Driver/clang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index a2ec08a1546e..1d5014ec285d 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -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: