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

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 25 17:45:01 PST 2003


Changes in directory llvm/lib/CWriter:

Writer.cpp updated: 1.146 -> 1.147

---
Log message:

Fix bug in previous checkin


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

Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.146 llvm/lib/CWriter/Writer.cpp:1.147
--- llvm/lib/CWriter/Writer.cpp:1.146	Tue Nov 25 14:49:55 2003
+++ llvm/lib/CWriter/Writer.cpp	Tue Nov 25 17:44:40 2003
@@ -1380,7 +1380,7 @@
     // Print out the -> operator if possible...
     if (TmpI != E && isa<StructType>(*TmpI)) {
       Out << (HasImplicitAddress ? "." : "->");
-      Out << "field" << cast<ConstantUInt>(I.getOperand())->getValue();
+      Out << "field" << cast<ConstantUInt>(TmpI.getOperand())->getValue();
       I = ++TmpI;
     }
   }





More information about the llvm-commits mailing list