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