diff options
Diffstat (limited to 'lib/Target/PowerPC/PPCCodeEmitter.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCCodeEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCCodeEmitter.cpp b/lib/Target/PowerPC/PPCCodeEmitter.cpp index 4633215..7c5fa7d 100644 --- a/lib/Target/PowerPC/PPCCodeEmitter.cpp +++ b/lib/Target/PowerPC/PPCCodeEmitter.cpp @@ -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(), |