insertelement got the wrong operands.

llvm-svn: 47819
This commit is contained in:
Chris Lattner 2008-03-02 08:10:16 +00:00
parent 051709436e
commit 4c058b39e4
1 changed files with 2 additions and 2 deletions

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 << ")";
}