[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
This commit is contained in:
Peter Klausler 2022-06-10 09:48:42 -07:00
parent 272bf0fc41
commit 2815bacc91

View file

@ -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)) {