diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-12-20 01:49:21 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-12-20 01:49:21 +0000 |
| commit | 17e705129eeffdefe148ecafdd0268ba463ac876 (patch) | |
| tree | bb2f6f56984072cac177f2ff3496f19a2b459775 | |
| parent | 4339883710798833bfa57440071f175fe91cfb2a (diff) | |
| download | bcm5719-llvm-17e705129eeffdefe148ecafdd0268ba463ac876.tar.gz bcm5719-llvm-17e705129eeffdefe148ecafdd0268ba463ac876.zip | |
Remove pointless casts.
llvm-svn: 349717
| -rw-r--r-- | compiler-rt/lib/asan/asan_thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_thread.cc b/compiler-rt/lib/asan/asan_thread.cc index faf423d305b..c05f2e28f3d 100644 --- a/compiler-rt/lib/asan/asan_thread.cc +++ b/compiler-rt/lib/asan/asan_thread.cc @@ -289,8 +289,8 @@ void AsanThread::SetThreadStackAndTls(const InitOptions *options) { DCHECK_EQ(options, nullptr); uptr tls_size = 0; uptr stack_size = 0; - GetThreadStackAndTls(tid() == 0, const_cast<uptr *>(&stack_bottom_), - const_cast<uptr *>(&stack_size), &tls_begin_, &tls_size); + GetThreadStackAndTls(tid() == 0, &stack_bottom_, &stack_size, &tls_begin_, + &tls_size); stack_top_ = stack_bottom_ + stack_size; tls_end_ = tls_begin_ + tls_size; dtls_ = DTLS_Get(); |

