Handle the removal of the debug chain.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26729 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 57723b4..43b4b71 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -1691,8 +1691,8 @@
       case Intrinsic::dbg_stoppoint: {
         // If we use writeOperand directly we get a "u" suffix which is rejected
         // by gcc.
-        ConstantUInt *SI = cast<ConstantUInt>(I.getOperand(2));
-        GlobalVariable *GV = cast<GlobalVariable>(I.getOperand(4));
+        ConstantUInt *SI = cast<ConstantUInt>(I.getOperand(1));
+        GlobalVariable *GV = cast<GlobalVariable>(I.getOperand(3));
         ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
         std::string FileName = CS->getOperand(4)->getStringValue();
         std::string Directory = CS->getOperand(5)->getStringValue();