The index stored in the RegDefIter is one after the current index. When getting...
authorOwen Anderson <resistor@mac.com>
Mon, 27 Jun 2011 18:34:12 +0000 (18:34 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 27 Jun 2011 18:34:12 +0000 (18:34 +0000)
commit702110159a53481227b01fed81fa4eec0ad3cc46
tree3f2524e699a770f04898a330f0e8789ae7345202
parent73f50d9bc3bd46cc0abeba9bb0d46977ba1aea42
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h