https://github.com/shafik created 
https://github.com/llvm/llvm-project/pull/153729

Static analysis flagged this goto as unreachable and indeed it is, so removing 
it.

>From 98ea646f9fb4331f24cb3492338efa0eaca7763b Mon Sep 17 00:00:00 2001
From: Shafik Yaghmour <shafik.yaghm...@intel.com>
Date: Thu, 14 Aug 2025 19:02:51 -0700
Subject: [PATCH] [Clang][Webassembly] Remove unrachable code in
 ParseTypeQualifierListOpt

Static analysis flagged this goto as unreachable and indeed it is, so removing
it.
---
 clang/lib/Parse/ParseDecl.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index fd53cca5a13ff..96f1a53922d1f 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -6224,7 +6224,6 @@ void Parser::ParseTypeQualifierListOpt(
     case tok::kw___funcref:
       ParseWebAssemblyFuncrefTypeAttribute(DS.getAttributes());
       continue;
-      goto DoneWithTypeQuals;
 
     case tok::kw___pascal:
       if (AttrReqs & AR_VendorAttributesParsed) {

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to