mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 06:30:39 +03:00
Merge pull request #1562 from kinke/dvalue
Continue with DValue refactoring and fix issue #1327
This commit is contained in:
commit
a2fdffaf0d
8 changed files with 180 additions and 158 deletions
|
@ -1866,13 +1866,3 @@ DValue *makeVarDValue(Type *type, VarDeclaration *vd, llvm::Value *storage) {
|
|||
|
||||
return new DLValue(type, val);
|
||||
}
|
||||
|
||||
LLValue *DtoRVal(DValue *v) { return v->getRVal(); }
|
||||
LLValue *DtoLVal(DValue *v) {
|
||||
auto lval = v->isLVal();
|
||||
assert(lval);
|
||||
return lval->getLVal();
|
||||
}
|
||||
|
||||
LLValue *DtoRVal(Expression *e) { return DtoRVal(toElem(e)); }
|
||||
LLValue *DtoLVal(Expression *e) { return DtoLVal(toElem(e)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue