0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/flang/0003-fix-missing-CHECK_MSG-macro.patch
Chongyun Lee 0442d0b1f3 bump(flang): 18.1.8 to 19.1.1
Co-Authored-By: Lucy Phipps <landfillbaby69@gmail.com>
2024-10-03 03:46:13 +05:30

12 lines
417 B
Diff

--- a/flang/include/flang/Common/idioms.h
+++ b/flang/include/flang/Common/idioms.h
@@ -89,6 +89,8 @@
#define CHECK(x) ((x) || (DIE("CHECK(" #x ") failed"), false))
// Same as above, but with a custom error message.
#define CHECK_MSG(x, y) ((x) || (DIE("CHECK(" #x ") failed: " #y), false))
+#elif !defined(CHECK_MSG)
+#define CHECK_MSG(x, y) CHECK(x)
#endif
// User-defined type traits that default to false: