mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SinkAddressProjections: Abort when we can't sink an address producing instruction live-out of a block.
rdar://61232730
This commit is contained in:
@@ -215,7 +215,8 @@ bool SinkAddressProjections::analyzeAddressProjections(SILInstruction *inst) {
|
||||
return false;
|
||||
|
||||
for (SILValue operandVal : projections[idx]->getOperandValues())
|
||||
pushOperandVal(operandVal);
|
||||
if (!pushOperandVal(operandVal))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user