Added fallback code for when no enum matches.

pull/13171/head
Joshua Haberman 4 years ago
parent c10b24ffb2
commit c81113e60f
  1. 2
      upbc/message_layout.cc

@ -58,6 +58,8 @@ MessageLayout::SizeAndAlign MessageLayout::SizeOfUnwrapped(
case protobuf::FieldDescriptor::CPPTYPE_DOUBLE:
return {{8, 8}, {8, 8}};
}
assert(false);
return {{-1, -1}, {-1, -1}};
}
int64_t MessageLayout::FieldLayoutRank(const protobuf::FieldDescriptor* field) {

Loading…
Cancel
Save