mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] InitAccessors: Reference a field that assign_or_init is associated with
The field removes the need to dig through init accessor reference to find what stored properties and handled by the instruction.
This commit is contained in:
@@ -1859,6 +1859,7 @@ void SILGenFunction::emitAssignOrInit(SILLocation loc, ManagedValue selfValue,
|
||||
setterFRef = SILUndef::get(initFRef->getType(), F);
|
||||
}
|
||||
|
||||
B.createAssignOrInit(loc, selfValue.getValue(), newValue.forward(*this),
|
||||
initFRef, setterFRef, AssignOrInitInst::Unknown);
|
||||
B.createAssignOrInit(loc, field, selfValue.getValue(),
|
||||
newValue.forward(*this), initFRef, setterFRef,
|
||||
AssignOrInitInst::Unknown);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user