diff options
| -rw-r--r-- | llvm/include/llvm/Support/IntegersSubset.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/IntegersSubset.h b/llvm/include/llvm/Support/IntegersSubset.h index 376b256bbeb..bb9e76925ed 100644 --- a/llvm/include/llvm/Support/IntegersSubset.h +++ b/llvm/include/llvm/Support/IntegersSubset.h @@ -500,6 +500,10 @@ public: explicit IntegersSubset(Constant *C) : ParentTy(rangesFromConstant(C)), Holder(C) {} + IntegersSubset(const IntegersSubset& RHS) : + ParentTy(*(const ParentTy *)&RHS), // FIXME: tweak for msvc. + Holder(RHS.Holder) {} + template<class RangesCollectionTy> explicit IntegersSubset(const RangesCollectionTy& Src) : ParentTy(Src) { std::vector<Constant*> Elts; |

