projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
272bf0f
)
[flang] Fix error message
author
Peter Klausler
<pklausler@nvidia.com>
Fri, 10 Jun 2022 16:48:42 +0000
(09:48 -0700)
committer
Peter Klausler
<pklausler@nvidia.com>
Wed, 15 Jun 2022 22:30:14 +0000
(15:30 -0700)
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
patch
|
blob
|
history
diff --git
a/flang/lib/Evaluate/common.cpp
b/flang/lib/Evaluate/common.cpp
index
3a3b01c
..
cdcd0ef
100644
(file)
--- 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)) {