aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/IntegersSubset.h
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-06-02 07:44:19 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-06-02 07:44:19 +0000
commite2c53188ea8b01ca3d91b91c42faa5aa07ba4b70 (patch)
treed42c61e1a6e67927e8da68f28a6345ffcad1ea29 /include/llvm/Support/IntegersSubset.h
parent4319a552ac98137d511341905711293d541f15e7 (diff)
Small fix due to buildbot failures on mingw32. Fixed call of parent constructor for case when parent is template.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IntegersSubset.h')
-rw-r--r--include/llvm/Support/IntegersSubset.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/IntegersSubset.h b/include/llvm/Support/IntegersSubset.h
index 0295d2a5af..ea3a8aee4f 100644
--- a/include/llvm/Support/IntegersSubset.h
+++ b/include/llvm/Support/IntegersSubset.h
@@ -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