diff options
Diffstat (limited to 'Userland/DevTools/Profiler')
-rw-r--r-- | Userland/DevTools/Profiler/DisassemblyModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/DisassemblyModel.cpp b/Userland/DevTools/Profiler/DisassemblyModel.cpp index 4e6dd9cb7c..749377b38c 100644 --- a/Userland/DevTools/Profiler/DisassemblyModel.cpp +++ b/Userland/DevTools/Profiler/DisassemblyModel.cpp @@ -123,7 +123,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node) break; auto insn = disassembler.next(); - if (!insn.has_value()) + if (!insn.has_value() || !insn.value().is_valid()) break; FlatPtr address_in_profiled_program = node.address() + offset_into_symbol; |