[clang] [lldb] [llvm] [openmp] [polly] fix(python): fix comparison to True/False (PR #91858)

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 10:48:02 PDT 2024


JDevlieghere wrote:

I don't think Alex is arguing in favor of keeping the old (wrong) behavior, but the first file looks like this:

```
foundSpec = False
if [...]
  foundSpec = True
[...]
if foundSpec is False:
```

It's pretty obvious this is a boolean and should use `if not foundSpec`. 

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


More information about the llvm-commits mailing list