diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-29 17:28:43 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-29 17:28:43 +0000 |
commit | a799807deaab8522aca81e2d3af81ed2aa42f1bd (patch) | |
tree | bd2c290d6c3f87e74513bad7469f6109ba957fbc /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | febdb0bc46c5aaf4930a5f5e4cfdb6158b0ec62c (diff) | |
download | bcm5719-llvm-a799807deaab8522aca81e2d3af81ed2aa42f1bd.tar.gz bcm5719-llvm-a799807deaab8522aca81e2d3af81ed2aa42f1bd.zip |
Downgrade a number of FIXME asserts to ErrorUnsupported.
- Notably VLAs
llvm-svn: 55544
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 57d5377bc37..27dd600f0a2 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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: { |