aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenTypes.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-28 18:02:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-28 18:02:04 +0000
commit9048891ff983d0681c116c6e8f1073aa31bdd6e8 (patch)
tree0fc94a01394e02a6767d142c443252f479cbc37f /lib/CodeGen/CodeGenTypes.cpp
parent4ef1c99433a5147f0f75d0dc6ba75af95ee79a68 (diff)
Fix double-free error with sizeof applied to VLA types.
- PR2727. Also, fix warning in CodeGenTypes for new BlockPointer type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r--lib/CodeGen/CodeGenTypes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp
index 1cdd798a39..e302f2b9ec 100644
--- a/lib/CodeGen/CodeGenTypes.cpp
+++ b/lib/CodeGen/CodeGenTypes.cpp
@@ -352,6 +352,10 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
TheModule.addTypeName(TypeName, Res);
return Res;
}
+
+ case Type::BlockPointer: {
+ assert(0 && "FIXME: Cannot get type of block pointer.");
+ }
}
// FIXME: implement.