[clang] [Clang][Webassembly] Remove unrachable code in ParseTypeQualifierListOpt (PR #153729)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 14 19:05:38 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Shafik Yaghmour (shafik)
<details>
<summary>Changes</summary>
Static analysis flagged this goto as unreachable and indeed it is, so removing it.
---
Full diff: https://github.com/llvm/llvm-project/pull/153729.diff
1 Files Affected:
- (modified) clang/lib/Parse/ParseDecl.cpp (-1)
``````````diff
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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/153729
More information about the cfe-commits
mailing list