From: Argyrios Kyrtzidis Date: Sat, 9 Aug 2008 22:01:55 +0000 (+0000) Subject: Handle BuiltinType::WChar inside CodeGenTypes::ConvertNewType(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afef76e43a30380b3c612a674738f2f574c8f166;p=clang Handle BuiltinType::WChar inside CodeGenTypes::ConvertNewType(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54593 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index db053aebb8..649a6f93d5 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -195,6 +195,7 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { assert(0 && "Non-canonical type, shouldn't happen"); case Type::Builtin: { switch (cast(Ty).getKind()) { + default: assert(0 && "Unknown builtin type!"); case BuiltinType::Void: // LLVM void type can only be used as the result of a function call. Just // map to the same as char. @@ -216,6 +217,7 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { case BuiltinType::ULong: case BuiltinType::LongLong: case BuiltinType::ULongLong: + case BuiltinType::WChar: return llvm::IntegerType::get( static_cast(Context.getTypeSize(T)));