[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Jim Laskey jlaskey at apple.com
Mon Mar 13 05:07:56 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.187 -> 1.188
---
Log message:

Handle the removal of the debug chain.


---
Diffs of the changes:  (+4 -4)

 SelectionDAGISel.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.187 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.188
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.187	Fri Mar 10 17:52:03 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Mon Mar 13 07:07:37 2006
@@ -966,19 +966,19 @@
     
   case Intrinsic::dbg_stoppoint: {
     MachineDebugInfo *DebugInfo = DAG.getMachineDebugInfo();
-    if (DebugInfo &&  DebugInfo->Verify(I.getOperand(4))) {
+    if (DebugInfo &&  DebugInfo->Verify(I.getOperand(3))) {
       std::vector<SDOperand> Ops;
 
       // Input Chain
       Ops.push_back(getRoot());
       
       // line number
-      Ops.push_back(getValue(I.getOperand(2)));
+      Ops.push_back(getValue(I.getOperand(1)));
      
       // column
-      Ops.push_back(getValue(I.getOperand(3)));
+      Ops.push_back(getValue(I.getOperand(2)));
 
-      DebugInfoDesc *DD = DebugInfo->getDescFor(I.getOperand(4));
+      DebugInfoDesc *DD = DebugInfo->getDescFor(I.getOperand(3));
       assert(DD && "Not a debug information descriptor");
       CompileUnitDesc *CompileUnit = dyn_cast<CompileUnitDesc>(DD);
       assert(CompileUnit && "Not a compile unit");






More information about the llvm-commits mailing list