[cfe-commits] r54593 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Sat Aug 9 15:01:55 PDT 2008
Author: akirtzidis
Date: Sat Aug 9 17:01:55 2008
New Revision: 54593
URL: http://llvm.org/viewvc/llvm-project?rev=54593&view=rev
Log:
Handle BuiltinType::WChar inside CodeGenTypes::ConvertNewType().
Modified:
cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=54593&r1=54592&r2=54593&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Sat Aug 9 17:01:55 2008
@@ -195,6 +195,7 @@
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 @@
case BuiltinType::ULong:
case BuiltinType::LongLong:
case BuiltinType::ULongLong:
+ case BuiltinType::WChar:
return llvm::IntegerType::get(
static_cast<unsigned>(Context.getTypeSize(T)));
More information about the cfe-commits
mailing list