Index: source/Symbol/ClangASTType.cpp =================================================================== --- source/Symbol/ClangASTType.cpp +++ source/Symbol/ClangASTType.cpp @@ -52,6 +52,11 @@ #include #include +// We make this a hard error to detect cases when clang introduces new types, but we do not +// handle them yet. If you get a compiler error about an enumeration value missing from a switch in +// this file, then you need to add code to handle the new type. +#pragma GCC diagnostic error "-Wswitch" + using namespace lldb; using namespace lldb_private; @@ -2212,7 +2217,6 @@ case clang::Type::Builtin: switch (llvm::cast(qual_type)->getKind()) { - default: assert(0 && "Unknown builtin type!"); case clang::BuiltinType::Void: break;