Remapper: Fix strip algo when strip ranges overlap
This commit is contained in:
parent
88e22a6090
commit
e86b4c84d6
1 changed files with 1 additions and 1 deletions
|
|
@ -1392,7 +1392,7 @@ namespace spv {
|
|||
|
||||
int strippedPos = 0;
|
||||
for (unsigned word = 0; word < unsigned(spv.size()); ++word) {
|
||||
if (strip_it != stripRange.end() && word >= strip_it->second)
|
||||
while (strip_it != stripRange.end() && word >= strip_it->second)
|
||||
++strip_it;
|
||||
|
||||
if (strip_it == stripRange.end() || word < strip_it->first || word >= strip_it->second)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue