JonasToth added a comment.

But that reasoning would apply to `if` and `while` loops, as it might be
an "always true". But you are right, this case is not generally problematic.

  long size = 300000;
  short index = 100;
  // Opposite comparison
  if(index > size) {
   // ....
  }


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D53974



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

Reply via email to