[clang] [Clang][Webassembly] Remove unrachable code in ParseTypeQualifierListOpt (PR #153729)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 14 19:05:04 PDT 2025
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.yaghmour at 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) {
More information about the cfe-commits
mailing list