[flang] Correct TypeCode::IsLogical()
authorpeter klausler <pklausler@nvidia.com>
Mon, 12 Apr 2021 17:10:38 +0000 (10:10 -0700)
committerpeter klausler <pklausler@nvidia.com>
Mon, 12 Apr 2021 19:57:22 +0000 (12:57 -0700)
commit5fe83b048a23ab1dabba047bfc551a0c2ac78e1b
treee4f67137554462a33ed8b35b4f7e56a28c6fe83c
parent52e9d80d5db20f23979e409f958736d130387f9e
[flang] Correct TypeCode::IsLogical()

F18 is using the type codes for C's "least" int types to encode
the various kinds of Fortran's LOGICAL intrinsic type; update
the IsLogical() predicate accordingly.  (This member function
isn't yet used anywhere, so this patch is nearly an NFC.)

Differential Revision: https://reviews.llvm.org/D100323
flang/runtime/type-code.h