Convert block types in IRgen. This is not the correct type, but

matches llvm-gcc (?).

llvm-svn: 61974
This commit is contained in:
Daniel Dunbar 2009-01-09 02:48:46 +00:00
parent 9b21e63251
commit cc1b6e8fce
1 changed files with 3 additions and 1 deletions

View File

@ -308,7 +308,9 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
}
case Type::BlockPointer: {
assert(0 && "FIXME: Cannot get type of block pointer.");
const QualType FTy = cast<BlockPointerType>(Ty).getPointeeType();
return llvm::PointerType::get(ConvertTypeRecursive(FTy),
FTy.getAddressSpace());
}
}