Remove pointless casts.

llvm-svn: 349717
This commit is contained in:
Evgeniy Stepanov 2018-12-20 01:49:21 +00:00
parent 4339883710
commit 17e705129e
1 changed files with 2 additions and 2 deletions

View File

@ -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();