diff options
| -rw-r--r-- | clang/unittests/Basic/FileManagerTest.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp index a725a437f6b..91998b63885 100644 --- a/clang/unittests/Basic/FileManagerTest.cpp +++ b/clang/unittests/Basic/FileManagerTest.cpp @@ -28,7 +28,8 @@ private:    llvm::StringMap<struct stat, llvm::BumpPtrAllocator> StatCalls;    void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) { -    struct stat statBuf = {}; +    struct stat statBuf; +    memset(&statBuf, 0, sizeof(statBuf));      statBuf.st_dev = 1;  #ifndef _WIN32  // struct stat has no st_ino field on Windows.      statBuf.st_ino = INode;  | 

