diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-11-30 01:28:32 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-11-30 01:28:32 +0000 |
commit | 1b51e3b2cbf929a7acc126e9d659e67d819a11e7 (patch) | |
tree | 43a5ebf7c074f3a41afdc2f639946997c5b0b588 /lib | |
parent | d976ca4fcacdd965446bcfbe8cb03b4ee67cd827 (diff) |
Add a default clause to avoid this GCC warning:
Type.cpp:1000: warning: control reaches end of non-void function
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/Type.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 56cd4dddb5..f1b6470417 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -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"; |