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:
2c39975
)
[flang][runtime] Fix error message
author
Peter Klausler
<pklausler@nvidia.com>
Sun, 14 Aug 2022 17:02:30 +0000
(10:02 -0700)
committer
Peter Klausler
<pklausler@nvidia.com>
Thu, 18 Aug 2022 21:41:19 +0000
(14:41 -0700)
A literal % character in an error message needs to be doubled
so that it appears in the output of snprintf().
Differential Revision: https://reviews.llvm.org/D132158
flang/runtime/namelist.cpp
patch
|
blob
|
history
diff --git
a/flang/runtime/namelist.cpp
b/flang/runtime/namelist.cpp
index
2257fa5
..
261492b
100644
(file)
--- a/
flang/runtime/namelist.cpp
+++ b/
flang/runtime/namelist.cpp
@@
-329,7
+329,7
@@
static bool HandleComponent(IoStatementState &io, Descriptor &desc,
}
} else {
handler.SignalError("NAMELIST component reference of input group item %s "
- "has no name after '%'",
+ "has no name after '%
%
'",
name);
}
return false;