summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Analysis/ThreadSafety.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-06-08 20:12:44 +0000
committerdim <dim@FreeBSD.org>2015-06-08 20:12:44 +0000
commit03d0a54e3cc610c487abdeeee2f71c2b564c215a (patch)
treee96542301f6fd25aee6c6e5de97e5f3cea2abcaa /contrib/llvm/tools/clang/lib/Analysis/ThreadSafety.cpp
parent4fefd3d137d34d9b42f8e414efff28e4a015dfd4 (diff)
downloadFreeBSD-src-03d0a54e3cc610c487abdeeee2f71c2b564c215a.zip
FreeBSD-src-03d0a54e3cc610c487abdeeee2f71c2b564c215a.tar.gz
Merge r283870 from amd64:
Remove unneeded NULL checks in trap_fatal(). Since td_name is an array member of struct thread, it can never be NULL, so the check can be removed. In addition, curproc can never be NULL, so remove the if statement, and splice the two printfs() together. While here, remove the u_long cast, and use the correct printf format specifier for curproc->p_pid. Requested by: jhb MFC after: 3 days
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Analysis/ThreadSafety.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud