[llvm-commits] [llvm] r157881 - /llvm/trunk/include/llvm/Support/IntegersSubset.h

Stepan Dyatkovskiy stpworld at narod.ru
Sat Jun 2 00:44:19 PDT 2012


Author: dyatkovskiy
Date: Sat Jun  2 02:44:19 2012
New Revision: 157881

URL: http://llvm.org/viewvc/llvm-project?rev=157881&view=rev
Log:
Small fix due to buildbot failures on mingw32. Fixed call of parent constructor for case when parent is template.


Modified:
    llvm/trunk/include/llvm/Support/IntegersSubset.h

Modified: llvm/trunk/include/llvm/Support/IntegersSubset.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IntegersSubset.h?rev=157881&r1=157880&r2=157881&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IntegersSubset.h (original)
+++ llvm/trunk/include/llvm/Support/IntegersSubset.h Sat Jun  2 02:44:19 2012
@@ -386,6 +386,9 @@
 /// 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 @@
   
 public:
   
-  IntegersSubset(Constant *C) : IntegersSubsetGeneric(rangesFromConstant(C)),
+  IntegersSubset(Constant *C) : ParentTy(rangesFromConstant(C)),
                                 Holder(C) {}
   
   // implicit





More information about the llvm-commits mailing list