mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 20:54:40 +08:00
Fixed a crasher when there is no log in Process::SetExitStatus (...).
llvm-svn: 124338
This commit is contained in:
@@ -566,7 +566,8 @@ Process::SetExitStatus (int status, const char *cstr)
|
||||
// We were already in the exited state
|
||||
if (m_private_state.GetValue() == eStateExited)
|
||||
{
|
||||
log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
|
||||
if (log)
|
||||
log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user