1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +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:
Hendiadyoin1 2023-02-26 20:17:34 +01:00 committed by Linus Groh
parent bd1cecb991
commit 8e5ebb04f4

View file

@ -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);