From: Aaron Ballman Date: Fri, 16 Aug 2013 02:56:43 +0000 (+0000) Subject: Calling the base class constructor from the derived class' initializer list. This... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4e31acb558a7f157244a11ae382c0138ee12d60b;p=oota-llvm.git Calling the base class constructor from the derived class' initializer list. This matches DenseMap's behavior, and silences some warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188528 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index d5aa8646b31..0b30161fa68 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -713,13 +713,13 @@ public: init(NumInitBuckets); } - SmallDenseMap(const SmallDenseMap &other) { + SmallDenseMap(const SmallDenseMap &other) : BaseT() { init(0); copyFrom(other); } #if LLVM_HAS_RVALUE_REFERENCES - SmallDenseMap(SmallDenseMap &&other) { + SmallDenseMap(SmallDenseMap &&other) : BaseT() { init(0); swap(other); }