llvm.org GIT mirror llvm / 9f23ac3
[libFuzzer] fix a warning from Wunreachable-code-loop-increment reported by Christian Holler. This also fixes a logical bug, which however does not affect the libFuzzer's ability too much (I wasn't able to create a differentiating test) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303087 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
221221 if (!Cur) break;
222222 Positions[NumPositions++] = Cur - Data;
223223 }
224 if (!NumPositions) break;
224 if (!NumPositions) continue;
225225 return DictionaryEntry(W, Positions[Rand(NumPositions)]);
226226 }
227227 DictionaryEntry DE(W);