mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
llvm/Support/IntegersSubset.h: Add a copy constructor on IntegersSubset to appease msvc.
msvc mis-infers ParentTy(RHS) to (const RangesCollectionTy &). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19dc8e374a
commit
653bbb494b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user