[flang-commits] [flang] f529c05 - [flang] Fix one legitimate warning found with -Werror (#175819)
via flang-commits
flang-commits at lists.llvm.org
Mon Jan 19 10:59:18 PST 2026
Author: Peter Klausler
Date: 2026-01-19T10:59:13-08:00
New Revision: f529c05d200b22d4b7d49e7d45121eb3ee1c80be
URL: https://github.com/llvm/llvm-project/commit/f529c05d200b22d4b7d49e7d45121eb3ee1c80be
DIFF: https://github.com/llvm/llvm-project/commit/f529c05d200b22d4b7d49e7d45121eb3ee1c80be.diff
LOG: [flang] Fix one legitimate warning found with -Werror (#175819)
Fix two legitimate warnings found by build bots the last time that I
tried to re-enable -Werror builds of flang-new by default, and turn it
back on for another try.
Added:
Modified:
flang/include/flang/Semantics/dump-expr.h
Removed:
################################################################################
diff --git a/flang/include/flang/Semantics/dump-expr.h b/flang/include/flang/Semantics/dump-expr.h
index 5a78e13b19e5d..8cbb78b585f4a 100644
--- a/flang/include/flang/Semantics/dump-expr.h
+++ b/flang/include/flang/Semantics/dump-expr.h
@@ -203,7 +203,7 @@ class DumpEvaluateExpr {
}
void Show(const evaluate::Relational<evaluate::SomeType> &x);
template <typename T> void Show(const evaluate::Expr<T> &x) {
- Indent("expr <" + std::string(TypeOf<T>::name) + ">");
+ Indent("expr <"s + std::string(TypeOf<T>::name) + ">"s);
Show(x.u);
Outdent();
}
More information about the flang-commits
mailing list