Fix operator!= for Dialects.
authorFederico Lebrón <flebron@google.com>
Thu, 10 Sep 2020 19:18:07 +0000 (19:18 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 10 Sep 2020 19:18:24 +0000 (19:18 +0000)
commit2141705337989195b448e292955f08884babbcbd
tree700e2fab98977440fb63cc91cf9c91315da233d2
parent5692497aef08ab4810f125669bc2f6aa79d9ec7e
Fix operator!= for Dialects.

Currently the global operator!=(bool, bool) is selected due to the implicit bool
conversion operator. Since this is never the desired semantics, we give it a
standard operator!= and make the bool conversion explicit.

Depends On D86809

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D86810
mlir/include/mlir/TableGen/Dialect.h