mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 8e5ebb04f4
Pull-request: https://github.com/SerenityOS/serenity/pull/17640
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