tsan: fix style
Usually we roll the variable declaration into the condition in cases like this. llvm-svn: 224755
This commit is contained in:
parent
4553bff412
commit
10070626b7
|
@ -251,9 +251,8 @@ ThreadContext *IsThreadStackOrTls(uptr addr, bool *is_stack) {
|
||||||
|
|
||||||
void ScopedReport::AddThread(int unique_tid, bool suppressable) {
|
void ScopedReport::AddThread(int unique_tid, bool suppressable) {
|
||||||
#ifndef SANITIZER_GO
|
#ifndef SANITIZER_GO
|
||||||
const ThreadContext *tctx = FindThreadByUidLocked(unique_tid);
|
if (const ThreadContext *tctx = FindThreadByUidLocked(unique_tid))
|
||||||
if (tctx)
|
AddThread(tctx, suppressable);
|
||||||
AddThread(FindThreadByUidLocked(unique_tid), suppressable);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue