From: Chris Lattner Date: Sun, 2 Mar 2008 08:10:16 +0000 (+0000) Subject: insertelement got the wrong operands. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9152daf868f82562f89e1bff58e307e31a92f4d0;p=oota-llvm.git insertelement got the wrong operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47819 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index ca00e19b2bf..12711c5ea3d 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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 << ")"; }