mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Correctly handle ref variables in an outer frame.
Fixes DMD testcase 'testcontracts'.
This commit is contained in:
@@ -57,6 +57,13 @@ LLValue* DVarValue::getRVal()
|
||||
return DtoLoad(tmp);
|
||||
}
|
||||
|
||||
LLValue* DVarValue::getRefStorage()
|
||||
{
|
||||
assert(val);
|
||||
assert(isSpecialRefVar(var));
|
||||
return val;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user