[llvm] [Flang][runtime] Fix RENAME intrinsic, remove trailing blanks (PR #159123)

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 10:44:02 PDT 2025


================
@@ -65,8 +65,20 @@ void RTDEF(Rename)(const Descriptor &path1, const Descriptor &path2,
   char *pathDst{EnsureNullTerminated(
       path2.OffsetElement(), path2.ElementBytes(), terminator)};
 
+  // Trim trailing blanks
----------------
kparzysz wrote:

Files in most unix-like filesystems can have trailing spaces.  I think it's the caller that should make sure the names are correct.

https://github.com/llvm/llvm-project/pull/159123


More information about the llvm-commits mailing list