From 372c2cc34318ded8480da132e1fea32afdc2d877 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 20 Jun 2024 12:40:34 -0700 Subject: [PATCH] Use C++17 [[fallthrough]] in 1 file inc ../xplat/hermes/lib/Parser/JSParserImpl.cpp Reviewed By: dmm-fb Differential Revision: D58818996 fbshipit-source-id: da378ab27ab61fec5d68a1a25bb349ea44c88d26 --- lib/Parser/JSParserImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parser/JSParserImpl.cpp b/lib/Parser/JSParserImpl.cpp index 1424169438e..3f13fc12344 100644 --- a/lib/Parser/JSParserImpl.cpp +++ b/lib/Parser/JSParserImpl.cpp @@ -4709,7 +4709,7 @@ Optional JSParserImpl::parseClassBody(SMLoc startLoc) { isStatic = true; advance(); } - // intentional fallthrough + LLVM_FALLTHROUGH; default: { // ClassElement auto optElem = parseClassElement(