comparison gen/arrays.cpp @ 334:20446d22f832 trunk

[svn r355] Get rid of IRState::exps and topexp.
author ChristianK
date Sat, 12 Jul 2008 15:43:13 +0200
parents 7086a84ab3d6
children 0c90d816394f
comparison
equal deleted inserted replaced
333:f7190d9eb70c 334:20446d22f832
526 LLValue* ptr = slice->ptr; 526 LLValue* ptr = slice->ptr;
527 ptr = llvm::GetElementPtrInst::Create(ptr, idx, "tmp", gIR->scopebb()); 527 ptr = llvm::GetElementPtrInst::Create(ptr, idx, "tmp", gIR->scopebb());
528 528
529 DValue* dptr = new DVarValue(exp->type, ptr, true); 529 DValue* dptr = new DVarValue(exp->type, ptr, true);
530 530
531 gIR->exps.push_back(IRExp(0,exp,dptr));
532 DValue* e = exp->toElem(gIR); 531 DValue* e = exp->toElem(gIR);
533 gIR->exps.pop_back();
534 532
535 if (!e->inPlace()) 533 if (!e->inPlace())
536 DtoAssign(dptr, e); 534 DtoAssign(dptr, e);
537 535
538 return slice; 536 return slice;