[llvm] r291013 - Fix some buildbot issues with const objects with default ctors
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 13:59:22 PST 2017
Author: dblaikie
Date: Wed Jan 4 15:59:22 2017
New Revision: 291013
URL: http://llvm.org/viewvc/llvm-project?rev=291013&view=rev
Log:
Fix some buildbot issues with const objects with default ctors
Modified:
llvm/trunk/include/llvm/Support/FileSystem.h
Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=291013&r1=291012&r2=291013&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Wed Jan 4 15:59:22 2017
@@ -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)
More information about the llvm-commits
mailing list