[tsan] Add some NULL pointer checks into the debugging API
authorKuba Brecka <kuba.brecka@gmail.com>
Mon, 21 Mar 2016 12:12:44 +0000 (12:12 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Mon, 21 Mar 2016 12:12:44 +0000 (12:12 +0000)
commit4b3833df7d0a2e23896f030086d92c1bd86a1328
tree7eea3454a4778d013a6398af778eaac6783ecd17
parent26bad433f901d8c55bc2af3992af0897d12a1388
[tsan] Add some NULL pointer checks into the debugging API

`__tsan_get_report_thread` and others can crash if a stack trace is missing, let's add the missing checks.

Differential Revision: http://reviews.llvm.org/D18306

llvm-svn: 263939
compiler-rt/lib/tsan/rtl/tsan_debugging.cc