From 20cb4919cd01967b11b0b468fd43167b263ed028 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Tue, 5 Jun 2012 07:43:08 +0000 Subject: IntegersSubsetMapping: Changed type of Items collection: from std::vector to std::list. Also some small fixes made in IntegersSubset.h, IntegersSubsetMapping.h and IntegersSubsetTest.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157987 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/IntegersSubset.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/llvm/Support/IntegersSubset.h') diff --git a/include/llvm/Support/IntegersSubset.h b/include/llvm/Support/IntegersSubset.h index add0c902a9..2ceeea5b66 100644 --- a/include/llvm/Support/IntegersSubset.h +++ b/include/llvm/Support/IntegersSubset.h @@ -293,7 +293,7 @@ protected: public: template - IntegersSubsetGeneric(const RangesCollectionTy& Links) { + explicit IntegersSubsetGeneric(const RangesCollectionTy& Links) { assert(Links.size() && "Empty ranges are not allowed."); for (typename RangesCollectionTy::const_iterator i = Links.begin(), e = Links.end(); i != e; ++i) { @@ -459,9 +459,8 @@ public: IntegersSubset(Constant *C) : ParentTy(rangesFromConstant(C)), Holder(C) {} - // implicit template - IntegersSubset(const RangesCollectionTy& Src) : ParentTy(Src) { + explicit IntegersSubset(const RangesCollectionTy& Src) : ParentTy(Src) { std::vector Elts; Elts.reserve(Src.size()); for (typename RangesCollectionTy::const_iterator i = Src.begin(), -- cgit v1.2.3