Merge 82194 from mainline. don't stick an uninitialized 'stat' buf into the stat cache, fill it with zeros. This avoids a GCC warning (PR5000) git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_26@82195 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index 98979d5..448063f 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp
@@ -293,6 +293,7 @@ if (result != 0) { // Cache failed 'stat' results. struct stat empty; + memset(&empty, 0, sizeof(empty)); StatCalls[path] = StatResult(result, empty); } else if (!S_ISDIR(buf->st_mode) || llvm::sys::Path(path).isAbsolute()) {