Skip to content

Commit f991bcb

Browse files
authored
Merge pull request #12257 from graydon/stats-output-dir-filename-issues
Stats output dir filename issues
2 parents 7ca1014 + 0e5b982 commit f991bcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Basic/Statistic.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ 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()) {
104-
InputName = "Onone";
106+
OptType = "Onone";
105107
}
106108
if (!OutputType.empty() && OutputType.front() == '.') {
107109
OutputType = OutputType.substr(1);

0 commit comments

Comments
 (0)