summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-06-27 18:34:12 +0000
committerOwen Anderson <resistor@mac.com>2011-06-27 18:34:12 +0000
commitb0a5a1ee2957c019627d0a2efad1842c4850ff3a (patch)
tree728d6a6ff532c057eaded55548db880625717fe1 /llvm/lib
parentd9997acd14e276e9fc459eaedbdcecb8a1d8f54b (diff)
downloadbcm5719-llvm-b0a5a1ee2957c019627d0a2efad1842c4850ff3a.tar.gz
bcm5719-llvm-b0a5a1ee2957c019627d0a2efad1842c4850ff3a.zip
The index stored in the RegDefIter is one after the current index. When getting the index, decrement it so that it points to the current element. Fixes an off-by-one bug encountered when trying to make use of MVT::untyped.
llvm-svn: 133923
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
index 3ad2bd6ca64..9c27b2ea02e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
@@ -140,7 +140,7 @@ namespace llvm {
}
unsigned GetIdx() const {
- return DefIdx;
+ return DefIdx-1;
}
void Advance();
OpenPOWER on IntegriCloud