diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-08-16 02:56:43 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-08-16 02:56:43 +0000 |
commit | 4e31acb558a7f157244a11ae382c0138ee12d60b (patch) | |
tree | 05b93b042e35b23065b863848446ea7ad52fc70b | |
parent | 32b34f7f720120c30f22a1220222550211fb606b (diff) | |
download | external_llvm-4e31acb558a7f157244a11ae382c0138ee12d60b.zip external_llvm-4e31acb558a7f157244a11ae382c0138ee12d60b.tar.gz external_llvm-4e31acb558a7f157244a11ae382c0138ee12d60b.tar.bz2 |
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
-rw-r--r-- | include/llvm/ADT/DenseMap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index d5aa864..0b30161 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); } |