[clang] [sema] Improve -Wsign-compare (PR #65684)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 8 08:37:25 PDT 2023


================
@@ -15478,7 +15544,7 @@ static void AnalyzeImplicitConversions(
       // Ignore checking string literals that are in logical and operators.
       // This is a common pattern for asserts.
       continue;
-    WorkList.push_back({ChildExpr, CC, IsListInit});
+    WorkList.push_back({ChildExpr, CC, IsListInit, false});
----------------
shafik wrote:

```suggestion
    WorkList.push_back({ChildExpr, CC, IsListInit, /*IsTopLevelExpr=*/false});
```

https://github.com/llvm/llvm-project/pull/65684


More information about the cfe-commits mailing list