mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Fix a crasher when you have no log.
llvm-svn: 124109
This commit is contained in:
@@ -331,9 +331,10 @@ ThreadList::ShouldReportRun (Event *event_ptr)
|
||||
result = eVoteYes;
|
||||
break;
|
||||
case eVoteNo:
|
||||
log->Printf ("ThreadList::ShouldReportRun() thread %d (0x%4.4x) says don't report.",
|
||||
(*pos)->GetIndexID(),
|
||||
(*pos)->GetID());
|
||||
if (log)
|
||||
log->Printf ("ThreadList::ShouldReportRun() thread %d (0x%4.4x) says don't report.",
|
||||
(*pos)->GetIndexID(),
|
||||
(*pos)->GetID());
|
||||
result = eVoteNo;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user