Fix bug in previous checkin

llvm-svn: 10231
This commit is contained in:
Chris Lattner 2003-11-25 23:44:40 +00:00
parent f5e8f68ed9
commit 422381c755

View 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;
}
}