diff options
| author | Dan Gohman <gohman@apple.com> | 2010-03-09 00:07:36 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-03-09 00:07:36 +0000 |
| commit | f6fb1e0d93879efe689003c2c7bb5e6dae86ebb8 (patch) | |
| tree | 58524508c32912994e17d2c32fd7710c4b1e5e4c /llvm/lib/CodeGen/SelectionDAG | |
| parent | b242ae6dccbf22c3be3b451dbd458511df84d748 (diff) | |
| download | bcm5719-llvm-f6fb1e0d93879efe689003c2c7bb5e6dae86ebb8.tar.gz bcm5719-llvm-f6fb1e0d93879efe689003c2c7bb5e6dae86ebb8.zip | |
Print the correct index in the "match failed at index" message.
llvm-svn: 98013
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 05f9f1ff186..32fdd30ac8a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2680,7 +2680,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, 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()) |

