[llvm-commits] [llvm] r133923 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
Owen Anderson
resistor at mac.com
Mon Jun 27 11:34:12 PDT 2011
Author: resistor
Date: Mon Jun 27 13:34:12 2011
New Revision: 133923
URL: http://llvm.org/viewvc/llvm-project?rev=133923&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h?rev=133923&r1=133922&r2=133923&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h Mon Jun 27 13:34:12 2011
@@ -140,7 +140,7 @@
}
unsigned GetIdx() const {
- return DefIdx;
+ return DefIdx-1;
}
void Advance();
More information about the llvm-commits
mailing list