================
@@ -599,9 +599,10 @@ Expected<StringRef> writeOffloadFile(const OffloadFile 
&File) {
 
   StringRef Prefix =
       sys::path::stem(Binary.getMemoryBufferRef().getBufferIdentifier());
-
-  auto TempFileOrErr = createOutputFile(
-      Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch(), "o");
+  std::string Filename =
----------------
arsenm wrote:

Can you use SmallString? Also is there one of those Path utility functions for 
this? 

https://github.com/llvm/llvm-project/pull/130285
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to