diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-04 21:59:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-04 21:59:22 +0000 |
commit | e950602d0557bb86610a6f0b6e7ee80f9097c605 (patch) | |
tree | 5f8437ff7b3449dca9f229effb645075ee5a2757 | |
parent | c88697dc16fbb48c2b2dc95ad0adec97d08a06a9 (diff) | |
download | bcm5719-llvm-e950602d0557bb86610a6f0b6e7ee80f9097c605.tar.gz bcm5719-llvm-e950602d0557bb86610a6f0b6e7ee80f9097c605.zip |
Fix some buildbot issues with const objects with default ctors
llvm-svn: 291013
-rw-r--r-- | llvm/include/llvm/Support/FileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h index 347f2110891..586999794d5 100644 --- a/llvm/include/llvm/Support/FileSystem.h +++ b/llvm/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) |