From: David Blaikie Date: Mon, 18 Jun 2012 22:31:28 +0000 (+0000) Subject: Don't copy a potentially-uninitialized variable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=90420105964371571ccacdf47771c6ca05db2e67;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 045b5c6a442..0166228a74d 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -490,7 +490,7 @@ private: template bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) { - const BucketT *ConstFoundBucket = FoundBucket; + const BucketT *ConstFoundBucket; bool Result = const_cast(this) ->LookupBucketFor(Val, ConstFoundBucket); FoundBucket = const_cast(ConstFoundBucket);