OSDN Git Service

Fix warning caused by TableGen verifier predicate (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Sat, 20 Jun 2020 06:22:04 +0000 (06:22 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 20 Jun 2020 06:31:06 +0000 (06:31 +0000)
commit20d0ab6157c1029c153bce80f39cf03837b7e717
tree9b57d9fb489c12fa11609104b8e451f82e2ca349
parentd313cb6e956de9448e4b979763ee8d12ce4103cb
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.
mlir/include/mlir/IR/OpBase.td