aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/TableGen/DAGISelMatcherOpt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelMatcherOpt.cpp b/utils/TableGen/DAGISelMatcherOpt.cpp
index d475dad..7e517ea 100644
--- a/utils/TableGen/DAGISelMatcherOpt.cpp
+++ b/utils/TableGen/DAGISelMatcherOpt.cpp
@@ -206,9 +206,9 @@ static void FactorNodes(OwningPtr<Matcher> &MatcherPtr) {
Optn->print(errs(), 4);
errs() << "into this:\n";
OptionsToMatch[Scan]->print(errs(), 4);
- if (OptionIdx+1 != e)
+ if (Scan+1 != e)
OptionsToMatch[Scan+1]->printOne(errs());
- if (OptionIdx+2 < e)
+ if (Scan+2 < e)
OptionsToMatch[Scan+2]->printOne(errs());
errs() << "\n");
}