We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e4af48 commit 99e79dbCopy full SHA for 99e79db
src/google/protobuf/compiler/cpp/message.cc
@@ -4856,7 +4856,7 @@ void MessageGenerator::GenerateSerializeWithCachedSizesBody(io::Printer* p) {
4856
v_.push_back(field);
4857
} else {
4858
// TODO: Defer non-oneof fields similarly to oneof fields.
4859
- if (HasHasbit(field, options_) && field->has_presence()) {
+ if (HasHasbit(field, options_)) {
4860
// We speculatively load the entire _has_bits_[index] contents, even
4861
// if it is for only one field. Deferring non-oneof emitting would
4862
// allow us to determine whether this is going to be useful.
0 commit comments