Convert block types in IRgen. This is not the correct type, but
matches llvm-gcc (?). llvm-svn: 61974
This commit is contained in:
parent
9b21e63251
commit
cc1b6e8fce
|
@ -308,7 +308,9 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
case Type::BlockPointer: {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue