From 8438e51cb26df4ba2f7cc75d75247813dc4a4148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 19 Jan 2023 23:57:09 +0000 Subject: [PATCH] src: remove unreachable UNREACHABLE All paths leading up to this UNREACHABLE either return or abort. (If they did not, the compiler would at least emit a warning.) --- src/string_bytes.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/string_bytes.cc b/src/string_bytes.cc index 6dcc32f36e01bd..748886cc11549b 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -736,11 +736,8 @@ MaybeLocal StringBytes::Encode(Isolate* isolate, } default: - CHECK(0 && "unknown encoding"); - break; + UNREACHABLE("unknown encoding"); } - - UNREACHABLE(); }