[flang-commits] [PATCH] D127794: [flang] Fix error message
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Jun 14 14:03:25 PDT 2022
klausler created this revision.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
A message has a %s string substitution in it but somebody (probably me)
forgot to pass the argument that defines it.
https://reviews.llvm.org/D127794
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);
+ context.messages().Say("division on %s"_warn_en_US, operation);
}
}
if (flags.test(RealFlag::InvalidArgument)) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127794.436929.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220614/08e108a8/attachment.bin>
More information about the flang-commits
mailing list