summaryrefslogtreecommitdiff
path: root/include/llvm/Support/IntegersSubset.h
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-06-05 07:43:08 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-06-05 07:43:08 +0000
commit20cb4919cd01967b11b0b468fd43167b263ed028 (patch)
treeca48877a58ffe13de072ac2148f33669f9fc16ea /include/llvm/Support/IntegersSubset.h
parent1d98530196feee3b1b3ddcd793377b9b430a411e (diff)
downloadllvm-20cb4919cd01967b11b0b468fd43167b263ed028.tar.gz
llvm-20cb4919cd01967b11b0b468fd43167b263ed028.tar.bz2
llvm-20cb4919cd01967b11b0b468fd43167b263ed028.tar.xz
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
Diffstat (limited to 'include/llvm/Support/IntegersSubset.h')
-rw-r--r--include/llvm/Support/IntegersSubset.h5
1 files changed, 2 insertions, 3 deletions
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<class RangesCollectionTy>
- 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<class RangesCollectionTy>
- IntegersSubset(const RangesCollectionTy& Src) : ParentTy(Src) {
+ explicit IntegersSubset(const RangesCollectionTy& Src) : ParentTy(Src) {
std::vector<Constant*> Elts;
Elts.reserve(Src.size());
for (typename RangesCollectionTy::const_iterator i = Src.begin(),