Small fix due to buildbot failures on mingw32. Fixed call of parent constructor for...
authorStepan Dyatkovskiy <stpworld@narod.ru>
Sat, 2 Jun 2012 07:44:19 +0000 (07:44 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Sat, 2 Jun 2012 07:44:19 +0000 (07:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157881 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IntegersSubset.h

index 0295d2a5af45cf8f9ce42e3a86af076203629fba..ea3a8aee4f2bb278d5a37a1c9fad9ed738d9d2d1 100644 (file)
@@ -386,6 +386,9 @@ public:
 /// IntegersSubset - currently is extension of IntegersSubsetGeneric
 /// that also supports conversion to/from Constant* object.
 class IntegersSubset : public IntegersSubsetGeneric<IntItem> {
+  
+  typedef IntegersSubsetGeneric<IntItem> ParentTy;
+  
   Constant *Holder;
   
   static unsigned getNumItemsFromConstant(Constant *C) {
@@ -424,7 +427,7 @@ class IntegersSubset : public IntegersSubsetGeneric<IntItem> {
   
 public:
   
-  IntegersSubset(Constant *C) : IntegersSubsetGeneric(rangesFromConstant(C)),
+  IntegersSubset(Constant *C) : ParentTy(rangesFromConstant(C)),
                                 Holder(C) {}
   
   // implicit