diff options
Diffstat (limited to 'benchmarks/util/data_proto2_to_proto3_util.h')
-rw-r--r-- | benchmarks/util/data_proto2_to_proto3_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmarks/util/data_proto2_to_proto3_util.h b/benchmarks/util/data_proto2_to_proto3_util.h index 7207efde..5eea8509 100644 --- a/benchmarks/util/data_proto2_to_proto3_util.h +++ b/benchmarks/util/data_proto2_to_proto3_util.h @@ -23,6 +23,7 @@ class DataStripper { const FieldDescriptor* field = set_fields[i]; if (ShouldBeClear(field)) { reflection->ClearField(message, field); + continue; } if (field->type() == FieldDescriptor::TYPE_MESSAGE) { if (field->is_repeated()) { |