[cfe-commits] r61974 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Daniel Dunbar
daniel at zuster.org
Thu Jan 8 18:48:46 PST 2009
Author: ddunbar
Date: Thu Jan 8 20:48:46 2009
New Revision: 61974
URL: http://llvm.org/viewvc/llvm-project?rev=61974&view=rev
Log:
Convert block types in IRgen. This is not the correct type, but
matches llvm-gcc (?).
Modified:
cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=61974&r1=61973&r2=61974&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Thu Jan 8 20:48:46 2009
@@ -308,7 +308,9 @@
}
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());
}
}
More information about the cfe-commits
mailing list