Remapper: Fix strip algo when strip ranges overlap

This commit is contained in:
GregF 2017-11-02 14:01:57 -06:00
parent 88e22a6090
commit e86b4c84d6

View File

@ -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)