[flang-commits] [PATCH] D124423: [flang] Get ppc64le build bot back up

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Apr 26 08:57:50 PDT 2022


klausler updated this revision to Diff 425240.
klausler added a comment.

Reverse the #if predicate, and wrap it around the whole function to avoid error from an empty array.


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

https://reviews.llvm.org/D124423

Files:
  flang/lib/Evaluate/intrinsics-library.cpp


Index: flang/lib/Evaluate/intrinsics-library.cpp
===================================================================
--- flang/lib/Evaluate/intrinsics-library.cpp
+++ flang/lib/Evaluate/intrinsics-library.cpp
@@ -325,6 +325,8 @@
   static_assert(map.Verify(), "map must be sorted");
 };
 
+#if !defined(__PPC__) || defined(__LONG_DOUBLE_IEEE128__)
+// TODO: use HostTypeExists instead?
 template <>
 struct HostRuntimeLibrary<long double, LibraryVersion::LibmExtensions> {
   using F = FuncPointer<long double, long double>;
@@ -340,6 +342,7 @@
   static constexpr HostRuntimeMap map{table};
   static_assert(map.Verify(), "map must be sorted");
 };
+#endif // !defined(__PPC__) || defined(__LONG_DOUBLE_IEEE128__)
 #endif
 
 /// Define pgmath description


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124423.425240.patch
Type: text/x-patch
Size: 756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220426/04523527/attachment.bin>


More information about the flang-commits mailing list