From 2815bacc9157ab09d7bf049d88cf1c9716a334ba Mon Sep 17 00:00:00 2001 From: Peter Klausler Date: Fri, 10 Jun 2022 09:48:42 -0700 Subject: [PATCH] [flang] Fix error message A message has a %s string substitution in it but somebody (probably me) forgot to pass the argument that defines it. Differential Revision: https://reviews.llvm.org/D127794 --- 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 3a3b01c..cdcd0ef 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); + context.messages().Say("division on %s"_warn_en_US, operation); } } if (flags.test(RealFlag::InvalidArgument)) { -- 2.7.4