Skip to content

Commit 0e5b982

Browse files
committed
[Stats] Only use input filename, not mangled path, in stats file name.
This was causing cases of very long input pathnames to be mangled into stats filenames greater than 255 characters long, which in turn meant stats files were not being written in some cases.
1 parent 77554c1 commit 0e5b982

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Basic/Statistic.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ auxName(StringRef ModuleName,
100100
if (InputName.empty()) {
101101
InputName = "all";
102102
}
103+
// Dispose of path prefix, which might make composite name too long.
104+
InputName = path::filename(InputName);
103105
if (OptType.empty()) {
104106
OptType = "Onone";
105107
}

0 commit comments

Comments
 (0)