aaron.ballman added inline comments.

================
Comment at: clang/lib/Sema/SemaChecking.cpp:8106
+          if (ImplicitMatch == analyze_printf::ArgType::NoMatchPedantic)
+            Pedantic |= true;
+          else
----------------
I don't think this needs to use `|= true`. If `Pedantic` was true, this is a 
noop. If it was false, this sets it to true. Either way the value is true, so I 
think it should just be `Pedantic = true;` The logic gets easier if you write 
this as:
```
if (ImplicitMatch && ImplicitMatch != analyze_printf::ArgType::NoMatchPedantic)
  return true;
Pedantic |= ImplicitMatch;
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66186/new/

https://reviews.llvm.org/D66186



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to