Add a couple asserts so it will be easier to debug if we accidentally pass indexed...
[oota-llvm.git] / lib / CodeGen / SelectionDAG / ScheduleDAGSDNodes.h
index 3ad2bd6ca649602f0699d2b96ce8845e9a55d59c..9c27b2ea02ec2b6d46b976e0118fb2562b6308e3 100644 (file)
@@ -140,7 +140,7 @@ namespace llvm {
       }
 
       unsigned GetIdx() const {
-        return DefIdx;
+        return DefIdx-1;
       }
 
       void Advance();