[flang-commits] [flang] [flang] One more fix for dumping evaluate::Expr (PR #165730)
via flang-commits
flang-commits at lists.llvm.org
Thu Oct 30 07:59:13 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: Krzysztof Parzyszek (kparzysz)
<details>
<summary>Changes</summary>
Clang doesn't have "std::string_view" in the type list.
---
Full diff: https://github.com/llvm/llvm-project/pull/165730.diff
1 Files Affected:
- (modified) flang/include/flang/Semantics/dump-expr.h (+2-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/165730
More information about the flang-commits
mailing list