mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
LibJS: Use a pseudo top-level UnwindFrame in GenerateCFG
Previously we assumed that there is always one such frame, now there is.
This commit is contained in:
parent
bd1cecb991
commit
8e5ebb04f4
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ void GenerateCFG::perform(PassPipelineExecutable& executable)
|
|||
|
||||
seen_blocks.clear();
|
||||
unwind_frames.clear();
|
||||
UnwindFrame top_level_frame = {};
|
||||
|
||||
unwind_frames.append(&top_level_frame);
|
||||
|
||||
generate_cfg_for_block(executable.executable.basic_blocks.first(), executable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue