insertelement got the wrong operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-03-02 08:10:16 +00:00
parent e05252b476
commit 9152daf868

View File

@ -3065,9 +3065,9 @@ void CWriter::visitInsertElementInst(InsertElementInst &I) {
Out << "((";
printType(Out, PointerType::getUnqual(EltTy));
Out << ")(&" << GetValueName(&I) << "))[";
writeOperand(I.getOperand(1));
Out << "] = (";
writeOperand(I.getOperand(2));
Out << "] = (";
writeOperand(I.getOperand(1));
Out << ")";
}