diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-02 08:10:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-02 08:10:16 +0000 |
commit | 9152daf868f82562f89e1bff58e307e31a92f4d0 (patch) | |
tree | efd8762a8e19ea193313ccdabdcc06d5ec32785c /lib/Target/CBackend/CBackend.cpp | |
parent | e05252b4765180b224cc78221e5fc0161873c2f3 (diff) |
insertelement got the wrong operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index ca00e19b2b..12711c5ea3 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 << ")"; } |