[flang-commits] [flang] [flang] One more fix for dumping evaluate::Expr (PR #165730)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Oct 30 07:58:35 PDT 2025
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/165730
Clang doesn't have "std::string_view" in the type list.
>From 8e5feec73d13440e5f977bf45cdbbf2b17e8c7a9 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Thu, 30 Oct 2025 09:56:28 -0500
Subject: [PATCH] [flang] One more fix for dumping evaluate::Expr
Clang doesn't have "std::string_view" in the type list.
---
flang/include/flang/Semantics/dump-expr.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flang/include/flang/Semantics/dump-expr.h b/flang/include/flang/Semantics/dump-expr.h
index 2dbd4cb60be59..5a78e13b19e5d 100644
--- a/flang/include/flang/Semantics/dump-expr.h
+++ b/flang/include/flang/Semantics/dump-expr.h
@@ -48,10 +48,11 @@ class DumpEvaluateExpr {
// "... [with T = xyz; std::string_view = ...]"
#ifdef __clang__
std::string_view front("[T = ");
+ std::string_view back("]");
#else
std::string_view front("[with T = ");
-#endif
std::string_view back("; std::string_view =");
+#endif
#elif defined(_MSC_VER)
#define DUMP_EXPR_SHOW_TYPE
More information about the flang-commits
mailing list