diff options
| author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-11-26 10:42:02 +0000 |
|---|---|---|
| committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-11-26 10:42:02 +0000 |
| commit | 3e4542eac432ee584d4dd885c995e2ab9c0f4715 (patch) | |
| tree | a4518bfe03eb1316936517df4155033ae8607c8b | |
| parent | 7ad0ddc7e650e671573f026b80e0b861526976b6 (diff) | |
| download | bcm5719-llvm-3e4542eac432ee584d4dd885c995e2ab9c0f4715.tar.gz bcm5719-llvm-3e4542eac432ee584d4dd885c995e2ab9c0f4715.zip | |
[Msan] Check returning value of DTLS_Get()
Differential Revision: http://reviews.llvm.org/D6403
llvm-svn: 222818
| -rw-r--r-- | compiler-rt/lib/msan/msan_thread.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/msan/msan_thread.cc b/compiler-rt/lib/msan/msan_thread.cc index 2a1e05a4e07..f29a4b053a3 100644 --- a/compiler-rt/lib/msan/msan_thread.cc +++ b/compiler-rt/lib/msan/msan_thread.cc @@ -36,6 +36,7 @@ void MsanThread::ClearShadowForThreadStackAndTLS() { if (tls_begin_ != tls_end_) __msan_unpoison((void *)tls_begin_, tls_end_ - tls_begin_); DTLS *dtls = DTLS_Get(); + CHECK_NE(dtls, 0); for (uptr i = 0; i < dtls->dtv_size; ++i) __msan_unpoison((void *)(dtls->dtv[i].beg), dtls->dtv[i].size); } |

