Commit c7ad413e authored by Paul's avatar Paul
Browse files

Formatting

parent 82e3f0b1
...@@ -64,10 +64,8 @@ instruction_ref program::remove_instructions(instruction_ref first, instruction_ ...@@ -64,10 +64,8 @@ instruction_ref program::remove_instructions(instruction_ref first, instruction_
{ {
assert(has_instruction(first)); assert(has_instruction(first));
assert(has_instruction(last)); assert(has_instruction(last));
std::for_each(first, last, [&](instruction& ins) { std::for_each(first, last, [&](instruction& ins) { ins.clear_arguments(); });
ins.clear_arguments(); assert(std::all_of(first, last, [&](instruction& ins) { return ins.output.empty(); }));
});
assert(std::all_of(first, last, [&](instruction& ins){ return ins.output.empty(); }));
return impl->instructions.erase(first, last); return impl->instructions.erase(first, last);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment