We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c0a53 commit 7ead20dCopy full SHA for 7ead20d
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
@@ -1891,11 +1891,8 @@ RISCVSingleStepBreakpointLocationsPredictor::HandleAtomicSequence(
1891
1892
// Set breakpoints at the jump addresses of the forward branches that points
1893
// after the end of the atomic sequence.
1894
- bp_addrs.erase(llvm::remove_if(bp_addrs,
1895
- [exit_pc](lldb::addr_t bp_addr) {
1896
- return exit_pc >= bp_addr;
1897
- }),
1898
- bp_addrs.end());
+ llvm::erase_if(
+ bp_addrs, [exit_pc](lldb::addr_t bp_addr) { return exit_pc >= bp_addr; });
1899
1900
// Set breakpoint at the end of atomic sequence.
1901
bp_addrs.push_back(exit_pc);
0 commit comments