Handle internal ref variables in class DSpecialRefValue

This commit is contained in:
Martin 2016-06-08 23:58:08 +02:00
parent de9149f1b6
commit f70f11fac5
4 changed files with 40 additions and 32 deletions

View file

@ -1864,7 +1864,10 @@ DValue *makeVarDValue(Type *type, VarDeclaration *vd, llvm::Value *storage) {
}
}
return new DLValue(type, val, isSpecialRefVar(vd));
if (isSpecialRefVar(vd))
return new DSpecialRefValue(type, val);
return new DLValue(type, val);
}
LLValue *DtoRVal(DValue *v) { return v->getRVal(); }