diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-25 23:44:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-25 23:44:40 +0000 |
commit | bc771c5608c077a3978e8cb36e136b31dcc53430 (patch) | |
tree | d7530098d9bc35e80607283b0e1ee5cab88de265 /lib | |
parent | 009900b512e41f042a652eb96ff4299c1749a2ff (diff) | |
download | external_llvm-bc771c5608c077a3978e8cb36e136b31dcc53430.zip external_llvm-bc771c5608c077a3978e8cb36e136b31dcc53430.tar.gz external_llvm-bc771c5608c077a3978e8cb36e136b31dcc53430.tar.bz2 |
Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index e9bc61b..b3b5b40 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<StructType>(*TmpI)) { Out << (HasImplicitAddress ? "." : "->"); - Out << "field" << cast<ConstantUInt>(I.getOperand())->getValue(); + Out << "field" << cast<ConstantUInt>(TmpI.getOperand())->getValue(); I = ++TmpI; } } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index e9bc61b..b3b5b40 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<StructType>(*TmpI)) { Out << (HasImplicitAddress ? "." : "->"); - Out << "field" << cast<ConstantUInt>(I.getOperand())->getValue(); + Out << "field" << cast<ConstantUInt>(TmpI.getOperand())->getValue(); I = ++TmpI; } } |