diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-20 06:38:42 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-20 06:38:42 +0000 |
commit | 6e6269a976baee45717265dbd12996367df6a201 (patch) | |
tree | 62c0bf46bb74c8ca0f112f60167cedc743267840 /lib/Target/ARM/ARMExpandPseudoInsts.cpp | |
parent | ee0d5d4398fb855c6674da94d902ef45e944f375 (diff) | |
download | external_llvm-6e6269a976baee45717265dbd12996367df6a201.zip external_llvm-6e6269a976baee45717265dbd12996367df6a201.tar.gz external_llvm-6e6269a976baee45717265dbd12996367df6a201.tar.bz2 |
Transfer memory operands to the right instruction.
They need to go on the PICLDR as the verifier points out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r-- | lib/Target/ARM/ARMExpandPseudoInsts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/lib/Target/ARM/ARMExpandPseudoInsts.cpp index 5fc0360..ac9163f 100644 --- a/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -925,7 +925,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB, if (isARM) { AddDefaultPred(MIB3); if (Opcode == ARM::MOV_ga_pcrel_ldr) - MIB2->setMemRefs(MI.memoperands_begin(), MI.memoperands_end()); + MIB3->setMemRefs(MI.memoperands_begin(), MI.memoperands_end()); } TransferImpOps(MI, MIB1, MIB3); MI.eraseFromParent(); |