summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-07-05 14:14:17 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-07-05 14:14:17 +0000
commit1f8da84b765781c3efd123e9da2271e799f0066d (patch)
tree93ba417f55208e69f1e79e46f94928d41372908c
parente87c38b229fca708c58dfb9dbb1806c531402dc1 (diff)
downloadbcm5719-llvm-1f8da84b765781c3efd123e9da2271e799f0066d.tar.gz
bcm5719-llvm-1f8da84b765781c3efd123e9da2271e799f0066d.zip
Fix uninitialized loop counter. http://llvm.org/bugs/show_bug.cgi?id=10278
llvm-svn: 134405
-rw-r--r--libcxx/include/__hash_table2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table
index 8efec224784..d469b0808d0 100644
--- a/libcxx/include/__hash_table
+++ b/libcxx/include/__hash_table
@@ -1168,7 +1168,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::clear() _NOEXCEPT
__deallocate(__p1_.first().__next_);
__p1_.first().__next_ = nullptr;
size_type __bc = bucket_count();
- for (size_type __i; __i < __bc; ++__i)
+ for (size_type __i = 0; __i < __bc; ++__i)
__bucket_list_[__i] = nullptr;
size() = 0;
}
OpenPOWER on IntegriCloud