fix logic in DEBUG.
authorChris Lattner <sabre@nondot.org>
Sat, 27 Feb 2010 08:13:23 +0000 (08:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 27 Feb 2010 08:13:23 +0000 (08:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97315 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelMatcherOpt.cpp

index d475dad49655df276556633d7909ed3042535ad6..7e517ea9fffeeecff31ecf32cf0196875a0fd18e 100644 (file)
@@ -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");
     }