mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-13 02:13:14 +01:00
[svn r217] Updated: the rebuild profiles.
Fixed: way to find class data fields was too strict type wise. Fixed: foreach resulting in an implicit delegate could fail.
This commit is contained in:
@@ -842,12 +842,13 @@ void ForeachStatement::toIR(IRState* p)
|
||||
llvm::Value* zerokey = llvm::ConstantInt::get(keytype,0,false);
|
||||
|
||||
// value
|
||||
Logger::println("value = %s", value->toPrettyChars());
|
||||
const llvm::Type* valtype = DtoType(value->type);
|
||||
llvm::Value* valvar = NULL;
|
||||
if (!value->isRef() && !value->isOut())
|
||||
valvar = new llvm::AllocaInst(valtype, "foreachval", p->topallocapoint());
|
||||
assert(!value->ir.irLocal);
|
||||
value->ir.irLocal = new IrLocal(value);
|
||||
if (!value->ir.irLocal)
|
||||
value->ir.irLocal = new IrLocal(value);
|
||||
|
||||
// what to iterate
|
||||
DValue* aggrval = aggr->toElem(p);
|
||||
|
||||
Reference in New Issue
Block a user