Add a default clause to avoid this GCC warning:

Type.cpp:1000: warning: control reaches end of non-void function

llvm-svn: 120376
This commit is contained in:
Nick Lewycky 2010-11-30 01:28:32 +00:00
parent c2e3445273
commit c4f482b1b7
1 changed files with 1 additions and 0 deletions

View File

@ -965,6 +965,7 @@ const char *Type::getTypeClassName() const {
const char *BuiltinType::getName(const LangOptions &LO) const {
switch (getKind()) {
default: assert(0 && "Invalid builtin type!");
case Void: return "void";
case Bool: return LO.Bool ? "bool" : "_Bool";
case Char_S: return "char";