diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc index 3d5b33657..583adf638 100644 --- a/src/compiler/graph-visualizer.cc +++ b/src/compiler/graph-visualizer.cc @@ -294,7 +294,7 @@ void JsonPrintAllSourceWithPositionsWasm( os << "\"inlinings\": {"; for (size_t i = 0; i < positions.size(); ++i) { if (i != 0) os << ", "; - DCHECK(source_map.contains(positions[i].inlinee_func_index)); + DCHECK(source_map.find(positions[i].inlinee_func_index) != source_map.end()); size_t source_id = source_map.find(positions[i].inlinee_func_index)->second; SourcePosition inlining_pos = positions[i].caller_pos; os << '"' << i << "\": {\"inliningId\": " << i