ARM: correctly expand LDR-lit based globals.
[oota-llvm.git] / lib / Target / ARM / ARMExpandPseudoInsts.cpp
index 2d805185e6cdd19a5d54dcc74a308fafe6dfa042..3e8705452aa9e31c8c128e4d81fd38055da6a579 100644 (file)
@@ -980,7 +980,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
       unsigned LDRLITOpc = IsARM ? ARM::LDRi12 : ARM::tLDRpci;
       unsigned PICAddOpc =
           IsARM
-              ? (Opcode == ARM::LDRLIT_ga_pcrel_ldr ? ARM::PICADD : ARM::PICLDR)
+              ? (Opcode == ARM::LDRLIT_ga_pcrel_ldr ? ARM::PICLDR : ARM::PICADD)
               : ARM::tPICADD;
 
       // We need a new const-pool entry to load from.