diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-06-18 22:31:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-06-18 22:31:28 +0000 |
commit | 90420105964371571ccacdf47771c6ca05db2e67 (patch) | |
tree | daa2f7aac2c9f2212b99245d2a03f505ccaf0730 /include | |
parent | eda9fdf979bd1c017304f8e9331f2c7df5df2d1c (diff) | |
download | llvm-90420105964371571ccacdf47771c6ca05db2e67.tar.gz llvm-90420105964371571ccacdf47771c6ca05db2e67.tar.bz2 llvm-90420105964371571ccacdf47771c6ca05db2e67.tar.xz |
Don't copy a potentially-uninitialized variable.
Based on review discussion of r158638 with Chandler Carruth, Tobias von Koch, and Duncan Sands and a -Wmaybe-uninitialized warning from GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/DenseMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 045b5c6a44..0166228a74 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -490,7 +490,7 @@ private: template <typename LookupKeyT> bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) { - const BucketT *ConstFoundBucket = FoundBucket; + const BucketT *ConstFoundBucket; bool Result = const_cast<const DenseMapBase *>(this) ->LookupBucketFor(Val, ConstFoundBucket); FoundBucket = const_cast<BucketT *>(ConstFoundBucket); |