[flang] don't allow conversions between logical and floating point
authorTom Eccles <tom.eccles@arm.com>
Wed, 14 Jun 2023 16:23:40 +0000 (16:23 +0000)
committerTom Eccles <tom.eccles@arm.com>
Mon, 19 Jun 2023 09:09:01 +0000 (09:09 +0000)
commitf523b9a55a3adecf1a8373ca7525630bdd7fb5ef
tree775b17d23836bf78560a5dfa920b04abca0c185f
parent569716fc5c2c232adcd5ff840637be596c1de9b9
[flang] don't allow conversions between logical and floating point

Codegen only supports conversions between logicals and integers. The
verifier should reflect this.

Differential Revision: https://reviews.llvm.org/D152935
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/test/Fir/invalid.fir