From c5b7d4101dd11a9d9dbe1735d537df331fb84aab Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Tue, 17 Aug 2021 14:55:11 -0700 Subject: [PATCH] Fix compilation breakage (#27049) * fix * Update percent_encoding.cc --- src/core/lib/slice/percent_encoding.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/lib/slice/percent_encoding.cc b/src/core/lib/slice/percent_encoding.cc index 591fc056351..b948706b717 100644 --- a/src/core/lib/slice/percent_encoding.cc +++ b/src/core/lib/slice/percent_encoding.cc @@ -65,6 +65,7 @@ class CompatibleTable : public BitSet<256> { static GRPC_PCTENCODE_CONSTEXPR_VALUE CompatibleTable g_compatible_table; +// Map PercentEncodingType to a lookup table of legal symbols for that encoding. const BitSet<256>& LookupTableForPercentEncodingType(PercentEncodingType type) { switch (type) { case PercentEncodingType::URL: @@ -72,6 +73,8 @@ const BitSet<256>& LookupTableForPercentEncodingType(PercentEncodingType type) { case PercentEncodingType::Compatible: return g_compatible_table; } + // Crash if a bad PercentEncodingType was passed in. + GPR_UNREACHABLE_CODE(abort()); } } // namespace