[Mlir-commits] [clang] [libc] [libcxxabi] [mlir] [llvm] [compiler-rt] [lldb] [flang] [lld] [libcxx] [clang-tools-extra] [libunwind] PR#72453 : Exceeding maximum file name length (PR #72654)

Todd A. Anderson llvmlistbot at llvm.org
Fri Nov 17 08:06:12 PST 2023


================
@@ -94,7 +96,7 @@ void printGraphForFunction(Function &F, GraphT Graph, StringRef Name,
   raw_fd_ostream File(Filename, EC, sys::fs::OF_TextWithCRLF);
----------------
DrTodd13 wrote:

I needed to work around this bug when I found it so in my local version I did a (Name.str() + "." + F.getName().str()).substr(0,250) + ".dot".  In this way, I just truncate the lengthy filename to 250 characters before adding the ".dot".  However, this approach has the problem that two functions who names differ only past the 250 character mark will try to write to the same file.  I don't know what the right solution is here and that's why I posted it for discussion. 

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


More information about the Mlir-commits mailing list