Calling the base class constructor from the derived class' initializer list. This...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 16 Aug 2013 02:56:43 +0000 (02:56 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 16 Aug 2013 02:56:43 +0000 (02:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188528 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h

index d5aa8646b31c7628e5ace51b55dce723244e2a23..0b30161fa685b96aa6805560f6f3f1b6d63c4e8d 100644 (file)
@@ -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);
   }