================
@@ -1718,6 +1720,13 @@ struct TestScopedLockable {
     MutexLock{&mu1}, a = 5;
   }
 
+  void temporary2(int x) {
+    if (check(MutexLock{&mu1}) || x) {
+
+    }
----------------
aaronpuchert wrote:

The `if` is probably not needed here, right? We could just write
```suggestion
    check(MutexLock{&mu1}) || x;
```
and should have the same CFG artifact.

https://github.com/llvm/llvm-project/pull/74020
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to