summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-08-16 02:56:43 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-08-16 02:56:43 +0000
commit9ad04218b55d4701558f8066cac21b40678a2183 (patch)
tree978b7939e4cadf67490a922474e0e0339e2571fa
parentc7581db4b984f98795233068cefe0aa112dd56c3 (diff)
downloadbcm5719-llvm-9ad04218b55d4701558f8066cac21b40678a2183.tar.gz
bcm5719-llvm-9ad04218b55d4701558f8066cac21b40678a2183.zip
Calling the base class constructor from the derived class' initializer list. This matches DenseMap's behavior, and silences some warnings.
llvm-svn: 188528
-rw-r--r--llvm/include/llvm/ADT/DenseMap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/DenseMap.h b/llvm/include/llvm/ADT/DenseMap.h
index d5aa8646b31..0b30161fa68 100644
--- a/llvm/include/llvm/ADT/DenseMap.h
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud