diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-06-24 03:48:53 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-06-24 03:48:53 +0000 |
| commit | c707c253ad17d80aa33c5aa97cd9463ed42e4478 (patch) | |
| tree | 6675179cc54783df04c3c65e2d8ed4fdc719968e | |
| parent | 37d96f08625d09a5fac03a255dc73e4569aeb898 (diff) | |
| download | bcm5719-llvm-c707c253ad17d80aa33c5aa97cd9463ed42e4478.tar.gz bcm5719-llvm-c707c253ad17d80aa33c5aa97cd9463ed42e4478.zip | |
llvm/Support/IntegersSubset.h: Add a copy constructor on IntegersSubset to appease msvc.
msvc mis-infers ParentTy(RHS) to (const RangesCollectionTy &).
llvm-svn: 159101
| -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; |

