mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-21 18:22:33 +01:00
LLVM: Do not crash on failure to create cache file
This commit is contained in:
parent
930895a218
commit
ff211a9508
@ -565,7 +565,12 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
fs::file(name, fs::rewrite).write(zbuf.get(), zsz - zs.avail_out);
|
||||
if (!fs::write_file(name, fs::rewrite, zbuf.get(), zsz - zs.avail_out))
|
||||
{
|
||||
jit_log.error("LLVM: Failed to create module file: %s (%s)", name, fs::g_tls_error);
|
||||
return;
|
||||
}
|
||||
|
||||
jit_log.notice("LLVM: Created module: %s", _module->getName().data());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user