[all-commits] [llvm/llvm-project] 20d0ab: Fix warning caused by TableGen verifier predicate ...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Jun 19 23:31:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 20d0ab6157c1029c153bce80f39cf03837b7e717
      https://github.com/llvm/llvm-project/commit/20d0ab6157c1029c153bce80f39cf03837b7e717
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

  Changed paths:
    M mlir/include/mlir/IR/OpBase.td

  Log Message:
  -----------
  Fix warning caused by TableGen verifier predicate (NFC)

Avoid using max on unsigned constants, in case the caller is using 0 we
end up with:

  warning: taking the max of unsigned zero and a value is always equal to the other value [-Wmax-unsigned-zero]

Instead we can just use native TableGen to fold the comparison here.




More information about the All-commits mailing list