summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_debugging.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-04-27 08:28:08 +0000
committerDmitry Vyukov <dvyukov@google.com>2016-04-27 08:28:08 +0000
commit066fefcbf3fd6393d8cefc0030187a0be3cbf2e5 (patch)
tree782d0a45263c6101c7e742fc5c96d934425cecea /compiler-rt/lib/tsan/rtl/tsan_debugging.cc
parentd87c7b321af8790cb41cc105331a08fba4975a27 (diff)
downloadbcm5719-llvm-066fefcbf3fd6393d8cefc0030187a0be3cbf2e5.tar.gz
bcm5719-llvm-066fefcbf3fd6393d8cefc0030187a0be3cbf2e5.zip
tsan: fix compiler warning
tsan_debugging.cc: In function ‘void* __tsan_get_current_report()’: tsan_debugging.cc:61:18: warning: cast from type ‘const __tsan::ReportDesc*’ to type ‘void*’ casts away qualifiers [-Wcast-qual] return (void *)rep; llvm-svn: 267679
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_debugging.cc')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_debugging.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_debugging.cc b/compiler-rt/lib/tsan/rtl/tsan_debugging.cc
index 3d800ffc572..ac24c89be7d 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_debugging.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_debugging.cc
@@ -57,8 +57,7 @@ static void CopyTrace(SymbolizedStack *first_frame, void **trace,
// Meant to be called by the debugger.
SANITIZER_INTERFACE_ATTRIBUTE
void *__tsan_get_current_report() {
- const ReportDesc *rep = cur_thread()->current_report;
- return (void *)rep;
+ return const_cast<ReportDesc*>(cur_thread()->current_report);
}
SANITIZER_INTERFACE_ATTRIBUTE
OpenPOWER on IntegriCloud