LibDebug: Keep track of the SetEpilogueBegin LineProgram OpCode

This prevents a crash with clang 16.
This commit is contained in:
Andrew Kaster 2023-06-26 20:56:22 -06:00 committed by Andreas Kling
parent 1e1fcb2ae7
commit aa0ed4ab4e
Notes: sideshowbarker 2024-07-17 02:37:08 +09:00
2 changed files with 5 additions and 0 deletions

View file

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

View file

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