From: David Blaikie Date: Wed, 4 Jan 2017 21:59:22 +0000 (+0000) Subject: Fix some buildbot issues with const objects with default ctors X-Git-Tag: android-x86-7.1-r4~22502 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4e9e4f277ad254e02a0cff33c61cd827e600da62;p=android-x86%2Fexternal-llvm.git Fix some buildbot issues with const objects with default ctors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291013 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 347f2110891..586999794d5 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -858,7 +858,7 @@ public: // No operator++ because we need error_code. recursive_directory_iterator &increment(std::error_code &ec) { - const directory_iterator end_itr; + const directory_iterator end_itr = {}; if (State->HasNoPushRequest) State->HasNoPushRequest = false; @@ -905,7 +905,7 @@ public: assert(State && "Cannot pop an end iterator!"); assert(State->Level > 0 && "Cannot pop an iterator with level < 1"); - const directory_iterator end_itr; + const directory_iterator end_itr = {}; std::error_code ec; do { if (ec)