[flang-commits] [PATCH] D128394: [flang] Fix wording of warning message

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jun 22 15:41:50 PDT 2022


klausler created this revision.
klausler added a reviewer: clementval.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

"division on intrinsic call" should read "division by zero on intrinsic call".


https://reviews.llvm.org/D128394

Files:
  flang/lib/Evaluate/common.cpp


Index: flang/lib/Evaluate/common.cpp
===================================================================
--- flang/lib/Evaluate/common.cpp
+++ flang/lib/Evaluate/common.cpp
@@ -22,7 +22,7 @@
     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)) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128394.439190.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220622/5d7ce223/attachment.bin>


More information about the flang-commits mailing list