[llvm] 57ccd42 - [PowerPC]fix XRAY failures in https://lab.llvm.org/buildbot/#/builders/145/builds/726

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 21 21:19:34 PDT 2024


Author: Chen Zheng
Date: 2024-07-22T00:07:47-04:00
New Revision: 57ccd42393b2e9e341d730ec8a6f39a5c89d126d

URL: https://github.com/llvm/llvm-project/commit/57ccd42393b2e9e341d730ec8a6f39a5c89d126d
DIFF: https://github.com/llvm/llvm-project/commit/57ccd42393b2e9e341d730ec8a6f39a5c89d126d.diff

LOG: [PowerPC]fix XRAY failures in https://lab.llvm.org/buildbot/#/builders/145/builds/726

Regression caused by 43213002b99e32d618f2afbbaaeb2ff8dfc84e33.

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 753f0d586a0d9..0e2811f87c817 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -1854,7 +1854,7 @@ void PPCLinuxAsmPrinter::emitInstruction(const MachineInstr *MI) {
       IsConditional = false;
     } else {
       EmitToStreamer(*OutStreamer, RetInst);
-      break;
+      return;
     }
 
     MCSymbol *FallthroughLabel;
@@ -1919,7 +1919,7 @@ void PPCLinuxAsmPrinter::emitInstruction(const MachineInstr *MI) {
     if (IsConditional)
       OutStreamer->emitLabel(FallthroughLabel);
     recordSled(BeginOfSled, *MI, SledKind::FUNCTION_EXIT, 2);
-    break;
+    return;
   }
   case TargetOpcode::PATCHABLE_FUNCTION_EXIT:
     llvm_unreachable("PATCHABLE_FUNCTION_EXIT should never be emitted");


        


More information about the llvm-commits mailing list