This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,18 +110,18 @@ class CachedPathResolver {
110
110
// / StringRef is interned in the given \p StringPool.
111
111
StringRef resolve (std::string Path, NonRelocatableStringpool &StringPool) {
112
112
StringRef FileName = sys::path::filename (Path);
113
- SmallString<PATH_MAX > ParentPath = sys::path::parent_path (Path);
113
+ SmallString<256 > ParentPath = sys::path::parent_path (Path);
114
114
115
115
// If the ParentPath has not yet been resolved, resolve and cache it for
116
116
// future look-ups.
117
117
if (!ResolvedPaths.count (ParentPath)) {
118
- SmallString<PATH_MAX > RealPath;
118
+ SmallString<256 > RealPath;
119
119
sys::fs::real_path (ParentPath, RealPath);
120
120
ResolvedPaths.insert ({ParentPath, StringRef (RealPath).str ()});
121
121
}
122
122
123
123
// Join the file name again with the resolved path.
124
- SmallString<PATH_MAX > ResolvedPath (ResolvedPaths[ParentPath]);
124
+ SmallString<256 > ResolvedPath (ResolvedPaths[ParentPath]);
125
125
sys::path::append (ResolvedPath, FileName);
126
126
return StringPool.internString (ResolvedPath);
127
127
}
You can’t perform that action at this time.
0 commit comments