From 047669f18c7bc8d0572fe207874f3cc2a4f31b9a Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 31 Aug 2016 05:20:08 +0000 Subject: [XRay] Support multiple return instructions in a single basic block Add a .mir test to catch this case, and fix the xray-instrumentation pass to handle it appropriately. llvm-svn: 280192 --- llvm/lib/CodeGen/XRayInstrumentation.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/CodeGen/XRayInstrumentation.cpp') diff --git a/llvm/lib/CodeGen/XRayInstrumentation.cpp b/llvm/lib/CodeGen/XRayInstrumentation.cpp index 1f9570895f9..714c0696173 100644 --- a/llvm/lib/CodeGen/XRayInstrumentation.cpp +++ b/llvm/lib/CodeGen/XRayInstrumentation.cpp @@ -79,7 +79,6 @@ bool XRayInstrumentation::runOnMachineFunction(MachineFunction &MF) { for (auto &MO : T.operands()) MIB.addOperand(MO); Terminators.push_back(&T); - break; } } } -- cgit v1.2.3