[flang-commits] [flang] [flang][NFC] Use LLVM's endianness enum (PR #86516)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Tue Mar 26 14:23:37 PDT 2024
================
@@ -142,13 +143,8 @@ template <typename A> struct ValueWithRealFlags {
RealFlags flags{};
};
-#if FLANG_BIG_ENDIAN
-constexpr bool isHostLittleEndian{false};
-#elif FLANG_LITTLE_ENDIAN
-constexpr bool isHostLittleEndian{true};
-#else
-#error host endianness is not known
-#endif
+constexpr bool isHostLittleEndian =
----------------
klausler wrote:
This initialization should use braces and does not need parentheses.
https://github.com/llvm/llvm-project/pull/86516
More information about the flang-commits
mailing list