[llvm-commits] [llvm] r98013 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Dan Gohman gohman at apple.com
Mon Mar 8 16:07:36 PST 2010


Author: djg
Date: Mon Mar  8 18:07:36 2010
New Revision: 98013

URL: http://llvm.org/viewvc/llvm-project?rev=98013&view=rev
Log:
Print the correct index in the "match failed at index" message.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=98013&r1=98012&r2=98013&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Mon Mar  8 18:07:36 2010
@@ -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())





More information about the llvm-commits mailing list