mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibDebug: Keep track of the SetEpilogueBegin LineProgram OpCode
This prevents a crash with clang 16.
This commit is contained in:
parent
1e1fcb2ae7
commit
aa0ed4ab4e
Notes:
sideshowbarker
2024-07-17 02:37:08 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/aa0ed4ab4e Pull-request: https://github.com/SerenityOS/serenity/pull/18522 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/implicitfield
2 changed files with 5 additions and 0 deletions
|
@ -252,6 +252,10 @@ ErrorOr<void> LineProgram::handle_standard_opcode(u8 opcode)
|
||||||
m_prologue_end = true;
|
m_prologue_end = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case StandardOpcodes::SetEpilogueBegin: {
|
||||||
|
m_epilogue_begin = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
dbgln("Unhandled LineProgram opcode {}", opcode);
|
dbgln("Unhandled LineProgram opcode {}", opcode);
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
|
|
|
@ -190,6 +190,7 @@ private:
|
||||||
bool m_is_statement { false };
|
bool m_is_statement { false };
|
||||||
bool m_basic_block { false };
|
bool m_basic_block { false };
|
||||||
bool m_prologue_end { false };
|
bool m_prologue_end { false };
|
||||||
|
bool m_epilogue_begin { false };
|
||||||
|
|
||||||
Vector<LineInfo> m_lines;
|
Vector<LineInfo> m_lines;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue