[flang-commits] [flang] f0d8092 - [flang] One more fix for dumping evaluate::Expr (#165730)

via flang-commits flang-commits at lists.llvm.org
Thu Oct 30 08:10:49 PDT 2025


Author: Krzysztof Parzyszek
Date: 2025-10-30T10:10:45-05:00
New Revision: f0d809261bf1d8f838056dbcc518d126e9b78b38

URL: https://github.com/llvm/llvm-project/commit/f0d809261bf1d8f838056dbcc518d126e9b78b38
DIFF: https://github.com/llvm/llvm-project/commit/f0d809261bf1d8f838056dbcc518d126e9b78b38.diff

LOG: [flang] One more fix for dumping evaluate::Expr (#165730)

Clang doesn't have "std::string_view" in the type list.

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 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