Print the correct index in the "match failed at index" message.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98013 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 05f9f1f..32fdd30 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -2680,7 +2680,7 @@
       NodeStack.append(LastScope.NodeStack.begin(), LastScope.NodeStack.end());
       N = NodeStack.back();
 
-      DEBUG(errs() << "  Match failed at index " << MatcherIndex
+      DEBUG(errs() << "  Match failed at index " << (MatcherIndex-1)
                    << " continuing at " << LastScope.FailIndex << "\n");
     
       if (LastScope.NumMatchedMemRefs != MatchedMemRefs.size())