OSDN Git Service

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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133923 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h

index 3ad2bd6..9c27b2e 100644 (file)
@@ -140,7 +140,7 @@ namespace llvm {
       }
 
       unsigned GetIdx() const {
-        return DefIdx;
+        return DefIdx-1;
       }
 
       void Advance();