JitRegister: Verify IOFile IsGood

Use IOFile's bool operator to check that it's not just open but good.
This commit is contained in:
Dentomologist
2026-01-18 14:34:17 -08:00
parent 935f537a80
commit 7490dea278

View File

@@ -79,7 +79,7 @@ void Register(const void* base_address, u32 code_size, const std::string& symbol
#endif
// Linux perf /tmp/perf-$pid.map:
if (!s_perf_map_file.IsOpen())
if (!s_perf_map_file)
return;
const auto entry = fmt::format("{} {:x} {}\n", fmt::ptr(base_address), code_size, symbol_name);