[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

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



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.255 -> 1.256
---
Log message:

Handle the removal of the debug chain.


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

 Writer.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.255 llvm/lib/Target/CBackend/Writer.cpp:1.256
--- llvm/lib/Target/CBackend/Writer.cpp:1.255	Wed Mar  8 13:31:15 2006
+++ llvm/lib/Target/CBackend/Writer.cpp	Mon Mar 13 07:07:37 2006
@@ -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();






More information about the llvm-commits mailing list