Changeset 657:c42173b3557b
- Timestamp:
- 10/06/08 08:37:00
(2 months ago)
- Author:
- Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
- branch:
- default
- Message:
Removed some checks for abstract llvm types that were too strict, a 'opaque* null' is a valid initializer... when structs in D can be just a forward reference.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r639 |
r657 |
|
| 1408 | 1408 | else { |
|---|
| 1409 | 1409 | c = llvm::ConstantExpr::getBitCast(cd->ir.irStruct->init, byteptrty); |
|---|
| 1410 | | assert(!cd->ir.irStruct->constInit->getType()->isAbstract()); |
|---|
| 1411 | 1410 | size_t initsz = getABITypeSize(cd->ir.irStruct->constInit->getType()); |
|---|
| 1412 | 1411 | c = DtoConstSlice(DtoConstSize_t(initsz), c); |
|---|
| r648 |
r657 |
|
| 961 | 961 | llvm::cast<LLOpaqueType>(vd->ir.irGlobal->type.get())->refineAbstractTypeTo(_type); |
|---|
| 962 | 962 | _type = vd->ir.irGlobal->type.get(); |
|---|
| 963 | | //_type->dump(); |
|---|
| 964 | | assert(!_type->isAbstract()); |
|---|
| 965 | 963 | |
|---|
| 966 | 964 | llvm::GlobalVariable* gvar = llvm::cast<llvm::GlobalVariable>(vd->ir.irGlobal->value); |
|---|