[flang-commits] [flang] [Flang] Add new CHECK_MSG() function (PR #86576)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Mar 25 14:22:59 PDT 2024


================
@@ -68,6 +68,8 @@ template <typename... LAMBDAS> visitors(LAMBDAS... x) -> visitors<LAMBDAS...>;
 [[noreturn]] void die(const char *, ...);
 
 #define DIE(x) Fortran::common::die(x " at " __FILE__ "(%d)", __LINE__)
+#define DIE_MSG(x, y) \
+  Fortran::common::die(x " at " __FILE__ "(%d): %s", __LINE__, y)
----------------
klausler wrote:

Unnecessary; see below.

https://github.com/llvm/llvm-project/pull/86576


More information about the flang-commits mailing list