Fix InsertFeedingExtract rule when extract remains.

This commit is contained in:
Greg Fischer 2018-03-12 16:53:58 -06:00 committed by Steven Perron
parent 5bd55f10cd
commit 077249b67f

View File

@ -1425,7 +1425,7 @@ FoldingRule InsertFeedingExtract() {
{cinst->GetSingleWordInOperand(kInsertObjectIdInIdx)}});
for (; i < inst->NumInOperands(); ++i) {
operands.push_back({SPV_OPERAND_TYPE_LITERAL_INTEGER,
{cinst->GetSingleWordInOperand(i)}});
{inst->GetSingleWordInOperand(i)}});
}
inst->SetInOperands(std::move(operands));
return true;