Skip to content

Commit b0aa6af

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 7b7406f commit b0aa6af

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
@@ -87,6 +87,8 @@ auxName(StringRef ModuleName,
8787
if (InputName.empty()) {
8888
InputName = "all";
8989
}
90+
// Dispose of path prefix, which might make composite name too long.
91+
InputName = path::filename(InputName);
9092
if (OptType.empty()) {
9193
OptType = "Onone";
9294
}

0 commit comments

Comments
 (0)