r329702 - Attempt to fix Windows build after r329698.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 07:08:26 PDT 2018


Author: nico
Date: Tue Apr 10 07:08:25 2018
New Revision: 329702

URL: http://llvm.org/viewvc/llvm-project?rev=329702&view=rev
Log:
Attempt to fix Windows build after r329698.

Modified:
    cfe/trunk/lib/Basic/FileManager.cpp

Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=329702&r1=329701&r2=329702&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Tue Apr 10 07:08:25 2018
@@ -534,7 +534,7 @@ StringRef FileManager::getCanonicalName(
 
   StringRef CanonicalName(Dir->getName());
 
-  SmallString<PATH_MAX> CanonicalNameBuf;
+  SmallString<256> CanonicalNameBuf;
   if (!llvm::sys::fs::real_path(Dir->getName(), CanonicalNameBuf))
     CanonicalName = StringRef(CanonicalNameBuf).copy(CanonicalNameStorage);
 




More information about the cfe-commits mailing list