aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-29 17:28:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-29 17:28:43 +0000
commit662174c82ef46b19a2329c7d37208e1d12dfb7b3 (patch)
tree97f388c9ca90a895ac73c9137689829a28295792 /lib/CodeGen/CodeGenModule.cpp
parent91c027e2021366396696977af7fdc0e070bdd614 (diff)
Downgrade a number of FIXME asserts to ErrorUnsupported.
- Notably VLAs git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 57d5377bc3..27dd600f0a 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -764,7 +764,11 @@ GetAddrOfConstantCFString(const std::string &str) {
/// GetStringForStringLiteral - Return the appropriate bytes for a
/// string literal, properly padded to match the literal type.
std::string CodeGenModule::GetStringForStringLiteral(const StringLiteral *E) {
- assert(!E->isWide() && "FIXME: Wide strings not supported yet!");
+ if (E->isWide()) {
+ ErrorUnsupported(E, "wide string");
+ return "FIXME";
+ }
+
const char *StrData = E->getStrData();
unsigned Len = E->getByteLength();
@@ -877,7 +881,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
break;
case Decl::Namespace:
- assert(0 && "FIXME: Namespace unsupported");
+ ErrorUnsupported(D, "namespace");
break;
// Objective-C Decls
@@ -914,7 +918,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
break;
}
case Decl::ObjCCompatibleAlias:
- assert(0 && "FIXME: ObjCCompatibleAlias unsupported");
+ ErrorUnsupported(D, "Objective-C compatible alias");
break;
case Decl::LinkageSpec: {