[llvm-branch-commits] [cfe-branch] r82195 - /cfe/branches/release_26/lib/Basic/FileManager.cpp
Tanya Lattner
tonic at nondot.org
Thu Sep 17 22:10:35 PDT 2009
Author: tbrethou
Date: Fri Sep 18 00:10:35 2009
New Revision: 82195
URL: http://llvm.org/viewvc/llvm-project?rev=82195&view=rev
Log:
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)
Modified:
cfe/branches/release_26/lib/Basic/FileManager.cpp
Modified: cfe/branches/release_26/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_26/lib/Basic/FileManager.cpp?rev=82195&r1=82194&r2=82195&view=diff
==============================================================================
--- cfe/branches/release_26/lib/Basic/FileManager.cpp (original)
+++ cfe/branches/release_26/lib/Basic/FileManager.cpp Fri Sep 18 00:10:35 2009
@@ -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()) {
More information about the llvm-branch-commits
mailing list