danielmarjamaki added a comment.

Thanks for working on these. imo these are false positives.



================
Comment at: lib/AST/Expr.cpp:1893
+
+  const IntegerLiteral *lit = dyn_cast<IntegerLiteral>(getInit(0));
+  if (!lit) {
----------------
I would recommend capital first letter for this variable


================
Comment at: lib/AST/Expr.cpp:1894
+  const IntegerLiteral *lit = dyn_cast<IntegerLiteral>(getInit(0));
+  if (!lit) {
+    return false;
----------------
I suggest a single line:

```
  return Lit && Lit->getValue() == 0;
```



https://reviews.llvm.org/D28148



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

Reply via email to