Fix bug in previous checkin
authorChris Lattner <sabre@nondot.org>
Tue, 25 Nov 2003 23:44:40 +0000 (23:44 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 25 Nov 2003 23:44:40 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10231 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index e9bc61bb3b1a80c1b5bdf27dff447f20adbf5f3a..b3b5b40e242ba07e1e6ed105bcfeddee2b154308 100644 (file)
@@ -1380,7 +1380,7 @@ void CWriter::printIndexingExpression(Value *Ptr, gep_type_iterator I,
     // 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;
     }
   }
index e9bc61bb3b1a80c1b5bdf27dff447f20adbf5f3a..b3b5b40e242ba07e1e6ed105bcfeddee2b154308 100644 (file)
@@ -1380,7 +1380,7 @@ void CWriter::printIndexingExpression(Value *Ptr, gep_type_iterator I,
     // 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;
     }
   }