From bf768ed215101579a1f8fd311e8210cd9a18c76d Mon Sep 17 00:00:00 2001 From: Simon Wanner Date: Sun, 27 Mar 2022 19:27:57 +0200 Subject: [PATCH] Profiler: Don't stop disassembly on invalid instructions --- Userland/DevTools/Profiler/DisassemblyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/DevTools/Profiler/DisassemblyModel.cpp b/Userland/DevTools/Profiler/DisassemblyModel.cpp index 0aa11e39dfb..b43512e6d73 100644 --- a/Userland/DevTools/Profiler/DisassemblyModel.cpp +++ b/Userland/DevTools/Profiler/DisassemblyModel.cpp @@ -107,7 +107,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node) break; auto insn = disassembler.next(); - if (!insn.has_value() || !insn.value().is_valid()) + if (!insn.has_value()) break; FlatPtr address_in_profiled_program = node.address() + offset_into_symbol;