From db8b6222d48f9cb22623a1cfcafafb0d62a184b7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 27 Feb 2010 08:13:23 +0000 Subject: [PATCH] fix logic in DEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97315 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelMatcherOpt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/DAGISelMatcherOpt.cpp b/utils/TableGen/DAGISelMatcherOpt.cpp index d475dad4965..7e517ea9fff 100644 --- a/utils/TableGen/DAGISelMatcherOpt.cpp +++ b/utils/TableGen/DAGISelMatcherOpt.cpp @@ -206,9 +206,9 @@ static void FactorNodes(OwningPtr &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"); } -- 2.34.1