aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmarks/util/data_proto2_to_proto3_util.h
diff options
context:
space:
mode:
authorGravatar Yilun Chong <yilunchong@google.com>2018-06-04 10:16:40 -0700
committerGravatar Yilun Chong <yilunchong@google.com>2018-06-04 10:16:40 -0700
commit61dac6d592fa3e384f77d914b67eb22c5d26104a (patch)
tree1e53638dc50ac8945437995ac637c66efef30b78 /benchmarks/util/data_proto2_to_proto3_util.h
parent193af9f4c1ebfeec4c9322fc4bbb2a513267d345 (diff)
Fix
Diffstat (limited to 'benchmarks/util/data_proto2_to_proto3_util.h')
-rw-r--r--benchmarks/util/data_proto2_to_proto3_util.h1
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()) {