mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Correctly handle ref variables in an outer frame.
Fixes DMD testcase 'testcontracts'.
This commit is contained in:
parent
0508acf10b
commit
c3d517e17f
3 changed files with 14 additions and 5 deletions
|
@ -57,6 +57,13 @@ LLValue* DVarValue::getRVal()
|
|||
return DtoLoad(tmp);
|
||||
}
|
||||
|
||||
LLValue* DVarValue::getRefStorage()
|
||||
{
|
||||
assert(val);
|
||||
assert(isSpecialRefVar(var));
|
||||
return val;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue