[PATCH] D100323: [flang] Correct TypeCode::IsLogical()

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 12:57:48 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5fe83b048a23: [flang] Correct TypeCode::IsLogical() (authored by klausler).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100323/new/

https://reviews.llvm.org/D100323

Files:
  flang/runtime/type-code.h


Index: flang/runtime/type-code.h
===================================================================
--- flang/runtime/type-code.h
+++ flang/runtime/type-code.h
@@ -45,7 +45,7 @@
   }
   constexpr bool IsLogical() const {
     return raw_ == CFI_type_Bool ||
-        (raw_ >= CFI_type_int_fast8_t && raw_ <= CFI_type_int_fast64_t);
+        (raw_ >= CFI_type_int_least8_t && raw_ <= CFI_type_int_least64_t);
   }
   constexpr bool IsDerived() const { return raw_ == CFI_type_struct; }
   constexpr bool IsIntrinsic() const { return IsValid() && !IsDerived(); }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100323.336941.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210412/a0440583/attachment.bin>


More information about the llvm-commits mailing list