Merge pull request #1562 from kinke/dvalue

Continue with DValue refactoring and fix issue #1327
This commit is contained in:
kinke 2016-06-26 21:24:43 +02:00 committed by GitHub
commit a2fdffaf0d
8 changed files with 180 additions and 158 deletions

View file

@ -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)); }