1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

insertelement got the wrong operands.

llvm-svn: 47819
This commit is contained in:
Chris Lattner 2008-03-02 08:10:16 +00:00
parent e9aa391b61
commit d8eeb6b1c8

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