diff options
author | Dean Michael Berris <dberris@google.com> | 2016-08-31 05:20:08 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2016-08-31 05:20:08 +0000 |
commit | 047669f18c7bc8d0572fe207874f3cc2a4f31b9a (patch) | |
tree | 7755bb54daacc8b8197025e1db0ac2739b54cee9 /llvm/lib/CodeGen/XRayInstrumentation.cpp | |
parent | a90e51e10682e6c425364fea4ae9c154292ecf7b (diff) | |
download | bcm5719-llvm-047669f18c7bc8d0572fe207874f3cc2a4f31b9a.tar.gz bcm5719-llvm-047669f18c7bc8d0572fe207874f3cc2a4f31b9a.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen/XRayInstrumentation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/XRayInstrumentation.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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; } } } |