From c81113e60f6c33be14436ade5b03e1c390343e79 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 14 Oct 2020 08:37:55 -0700 Subject: [PATCH] Added fallback code for when no enum matches. --- upbc/message_layout.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upbc/message_layout.cc b/upbc/message_layout.cc index 1a90029f8a..2a4fdbf3b4 100644 --- a/upbc/message_layout.cc +++ b/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) {