fix logic in DEBUG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97315 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-02-27 08:13:23 +00:00
parent 247896272a
commit db8b6222d4

View 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");
}