diff --git a/lib/WasmReader/WasmBinaryReader.cpp b/lib/WasmReader/WasmBinaryReader.cpp index 90b6e7875f8..fbd319ae225 100644 --- a/lib/WasmReader/WasmBinaryReader.cpp +++ b/lib/WasmReader/WasmBinaryReader.cpp @@ -239,6 +239,7 @@ void WasmBinaryReader::PrintOps() int i = 0; while (iter.IsValid()) { + __analysis_assume(i < count); ops[i] = iter.CurrentKey(); iter.MoveNext(); ++i;