[compiler-rt] r349717 - Remove pointless casts.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 19 17:49:21 PST 2018
Author: eugenis
Date: Wed Dec 19 17:49:21 2018
New Revision: 349717
URL: http://llvm.org/viewvc/llvm-project?rev=349717&view=rev
Log:
Remove pointless casts.
Modified:
compiler-rt/trunk/lib/asan/asan_thread.cc
Modified: compiler-rt/trunk/lib/asan/asan_thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_thread.cc?rev=349717&r1=349716&r2=349717&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_thread.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_thread.cc Wed Dec 19 17:49:21 2018
@@ -289,8 +289,8 @@ void AsanThread::SetThreadStackAndTls(co
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();
More information about the llvm-commits
mailing list