summaryrefslogtreecommitdiff
path: root/lib/Frontend/ModuleDependencyCollector.cpp
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-04-07 01:58:14 +0000
committerSean Silva <chisophugis@gmail.com>2016-04-07 01:58:14 +0000
commitfcf75bb5b7ec7704ad2c03139746b157307265be (patch)
treeb394de38b5a8e4513227f7c0eff204e3558bd7bd /lib/Frontend/ModuleDependencyCollector.cpp
parenta916f7f5e9bbc096e7c6fab18be01b8013a39fe1 (diff)
downloadclang-fcf75bb5b7ec7704ad2c03139746b157307265be.tar.gz
Don't use PATH_MAX.
This is a SmallVector anyway, and so the exact size doesn't matter. clang\lib\Frontend\ModuleDependencyCollector.cpp(83) : error C2065: 'PATH_MAX' : undeclared identifier clang\lib\Frontend\ModuleDependencyCollector.cpp(83) : error C2975: 'InternalLen' : invalid template argument for 'llvm::SmallString', expected compile-time constant expression llvm\include\llvm/ADT/SmallString.h(24) : see declaration of 'InternalLen' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ModuleDependencyCollector.cpp')
-rw-r--r--lib/Frontend/ModuleDependencyCollector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/ModuleDependencyCollector.cpp b/lib/Frontend/ModuleDependencyCollector.cpp
index d23f988b9f..3e6c0d2475 100644
--- a/lib/Frontend/ModuleDependencyCollector.cpp
+++ b/lib/Frontend/ModuleDependencyCollector.cpp
@@ -81,7 +81,7 @@ void ModuleDependencyCollector::attachToPreprocessor(Preprocessor &PP) {
}
static bool isCaseSensitivePath(StringRef Path) {
- SmallString<PATH_MAX> TmpDest = Path, UpperDest, RealDest;
+ SmallString<256> TmpDest = Path, UpperDest, RealDest;
// Remove component traversals, links, etc.
if (!real_path(Path, TmpDest))
return true; // Current default value in vfs.yaml