https://github.com/Disservin updated 
https://github.com/llvm/llvm-project/pull/207085

>From 5229b4c434e37996f78f7816815c860957a9a4f2 Mon Sep 17 00:00:00 2001
From: Disservin <[email protected]>
Date: Wed, 1 Jul 2026 23:11:29 +0200
Subject: [PATCH] [clang] Fix enum/non-enum conditional warning in ParseStmt

Use Scope::NoScope instead of 0
---
 clang/lib/Parse/ParseStmt.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 37f142e059930..f9c7d0988b403 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1741,7 +1741,8 @@ StmtResult Parser::ParseWhileStatement(SourceLocation 
*TrailingElseLoc,
   // while, for, and switch statements are local to the if, while, for, or
   // switch statement (including the controlled statement).
   //
-  unsigned ScopeFlags = Scope::ControlScope | (C99orCXX ? Scope::DeclScope : 
0);
+  unsigned ScopeFlags =
+      Scope::ControlScope | (C99orCXX ? Scope::DeclScope : Scope::NoScope);
   ParseScope WhileScope(this, ScopeFlags);
 
   // Parse the condition.

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to