From dfaa3880e1f90b9f4540c4c8ef1d19d4dfad8ace Mon Sep 17 00:00:00 2001 From: Peter Klausler Date: Fri, 17 Jun 2022 16:31:17 -0700 Subject: [PATCH] [flang] Fix wording of warning message "division on intrinsic call" should read "division by zero on intrinsic call". Differential Revision: https://reviews.llvm.org/D128394 --- flang/lib/Evaluate/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/Evaluate/common.cpp b/flang/lib/Evaluate/common.cpp index cdcd0ef..c659a50 100644 --- a/flang/lib/Evaluate/common.cpp +++ b/flang/lib/Evaluate/common.cpp @@ -22,7 +22,7 @@ void RealFlagWarnings( if (std::strcmp(operation, "division") == 0) { context.messages().Say("division by zero"_warn_en_US); } else { - context.messages().Say("division on %s"_warn_en_US, operation); + context.messages().Say("division by zero on %s"_warn_en_US, operation); } } if (flags.test(RealFlag::InvalidArgument)) { -- 2.7.4