mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 19:50:05 +00:00
Fix InsertFeedingExtract rule when extract remains.
This commit is contained in:
parent
5bd55f10cd
commit
077249b67f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user