JitRegister: Verify IOFile IsGood
Use IOFile's bool operator to check that it's not just open but good.
This commit is contained in:
1 parent
935f537a80
commit
7490dea278
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user