[compiler-rt] [compiler-rt][profile] Duplicate filename in `parseAndSetFilename` if exists (PR #110264)

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 11:18:07 PST 2024


================
@@ -894,18 +894,27 @@ static void parseAndSetFilename(const char *FilenamePat,
                                 ProfileNameSpecifier PNS,
                                 unsigned CopyFilenamePat) {
 
-  const char *OldFilenamePat = lprofCurFilename.FilenamePat;
+  char *OldFilenamePat = lprofCurFilename.FilenamePat
----------------
david-xl wrote:

can this be sunk closer to its first use?

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


More information about the llvm-commits mailing list