From: Chris Lattner Date: Tue, 25 Nov 2003 23:44:40 +0000 (+0000) Subject: Fix bug in previous checkin X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc771c5608c077a3978e8cb36e136b31dcc53430;p=oota-llvm.git Fix bug in previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10231 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index e9bc61bb3b1..b3b5b40e242 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1380,7 +1380,7 @@ void CWriter::printIndexingExpression(Value *Ptr, gep_type_iterator I, // Print out the -> operator if possible... if (TmpI != E && isa(*TmpI)) { Out << (HasImplicitAddress ? "." : "->"); - Out << "field" << cast(I.getOperand())->getValue(); + Out << "field" << cast(TmpI.getOperand())->getValue(); I = ++TmpI; } } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index e9bc61bb3b1..b3b5b40e242 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -1380,7 +1380,7 @@ void CWriter::printIndexingExpression(Value *Ptr, gep_type_iterator I, // Print out the -> operator if possible... if (TmpI != E && isa(*TmpI)) { Out << (HasImplicitAddress ? "." : "->"); - Out << "field" << cast(I.getOperand())->getValue(); + Out << "field" << cast(TmpI.getOperand())->getValue(); I = ++TmpI; } }