forked from OSchip/llvm-project
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:
parent
c2e3445273
commit
c4f482b1b7
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue