1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibJS: Handle FinishUnwind in GenerateCFG

This commit is contained in:
Hendiadyoin1 2022-11-02 14:55:37 +01:00 committed by Ali Mohammad Pur
parent 6998b72d22
commit a00c421d61
2 changed files with 7 additions and 0 deletions

View file

@ -90,6 +90,11 @@ void GenerateCFG::perform(PassPipelineExecutable& executable)
enter_label(&resume_target, current_block);
continue;
}
case FinishUnwind: {
auto const& next_target = static_cast<Op::FinishUnwind const&>(instruction).next_target();
enter_label(&next_target, current_block);
continue;
}
default:
// Otherwise, pop the current block off, it doesn't jump anywhere.
iterators.take_last();