SinkAddressProjections: Abort when we can't sink an address producing instruction live-out of a block.

rdar://61232730
This commit is contained in:
Arnold Schwaighofer
2020-04-22 06:30:08 -07:00
parent b1122e914e
commit 3f22bfdddc
2 changed files with 59 additions and 1 deletions

View File

@@ -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;
}