Skip to content

Commit 57ccd42

Browse files
author
Chen Zheng
committed
Regression caused by 4321300.
1 parent 248fcab commit 57ccd42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ void PPCLinuxAsmPrinter::emitInstruction(const MachineInstr *MI) {
18541854
IsConditional = false;
18551855
} else {
18561856
EmitToStreamer(*OutStreamer, RetInst);
1857-
break;
1857+
return;
18581858
}
18591859

18601860
MCSymbol *FallthroughLabel;
@@ -1919,7 +1919,7 @@ void PPCLinuxAsmPrinter::emitInstruction(const MachineInstr *MI) {
19191919
if (IsConditional)
19201920
OutStreamer->emitLabel(FallthroughLabel);
19211921
recordSled(BeginOfSled, *MI, SledKind::FUNCTION_EXIT, 2);
1922-
break;
1922+
return;
19231923
}
19241924
case TargetOpcode::PATCHABLE_FUNCTION_EXIT:
19251925
llvm_unreachable("PATCHABLE_FUNCTION_EXIT should never be emitted");

0 commit comments

Comments
 (0)