mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 22:50:53 +03:00
Handle internal ref variables in class DSpecialRefValue
This commit is contained in:
parent
de9149f1b6
commit
f70f11fac5
4 changed files with 40 additions and 32 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue