mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Fixed a potential crash in Process.cpp when we
used a log unchecked. llvm-svn: 137157
This commit is contained in:
@@ -3724,8 +3724,9 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
|
||||
}
|
||||
else
|
||||
{
|
||||
log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get"
|
||||
" a stopped event, instead got %s.", StateAsCString(stop_state));
|
||||
if (log)
|
||||
log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get"
|
||||
" a stopped event, instead got %s.", StateAsCString(stop_state));
|
||||
return_value = eExecutionInterrupted;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user