Correctly handle ref variables in an outer frame.

Fixes DMD testcase 'testcontracts'.
This commit is contained in:
David Nadlinger 2013-01-04 07:26:15 +01:00
parent 0508acf10b
commit c3d517e17f
3 changed files with 14 additions and 5 deletions

View file

@ -57,6 +57,13 @@ LLValue* DVarValue::getRVal()
return DtoLoad(tmp);
}
LLValue* DVarValue::getRefStorage()
{
assert(val);
assert(isSpecialRefVar(var));
return val;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////