aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-09 22:01:55 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-09 22:01:55 +0000
commitafef76e43a30380b3c612a674738f2f574c8f166 (patch)
tree9fce1a442589f50a5fd8278d1f90c95397438f84 /lib/CodeGen
parent8389eab190afef3462f6418b8d8fb70fb01c4005 (diff)
Handle BuiltinType::WChar inside CodeGenTypes::ConvertNewType().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CodeGenTypes.cpp2
1 files changed, 2 insertions, 0 deletions
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<BuiltinType>(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<unsigned>(Context.getTypeSize(T)));