fix a pasto that massively broke the ppc jit while the buildbots happened
authorChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2010 22:50:50 +0000 (22:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2010 22:50:50 +0000 (22:50 +0000)
to be broken for other reasons

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119283 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCCodeEmitter.cpp

index 46332158fb5c710c9a99ebf42314462b590b86b8..7c5fa7d5e475ec26a930cad1612dce2c18c39613 100644 (file)
@@ -168,8 +168,8 @@ MachineRelocation PPCCodeEmitter::GetRelocation(const MachineOperand &MO,
                                            RelocID, MO.getIndex(), Cst);
 
   if (MO.isMBB())
-    MCE.addRelocation(MachineRelocation::getBB(MCE.getCurrentPCOffset(),
-                                               RelocID, MO.getMBB()));
+    return MachineRelocation::getBB(MCE.getCurrentPCOffset(),
+                                    RelocID, MO.getMBB());
   
   assert(MO.isJTI());
   return MachineRelocation::getJumpTable(MCE.getCurrentPCOffset(),