summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-06-14 20:00:36 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-06-14 20:00:36 +0000
commit8b086e38789796b575be2cc875dd8d67cd714338 (patch)
tree5c7db4611dde73c7782e706ac23f54a2ae4ffe1f /libcxx/test
parent0dc4778067f17baaf4962cb216abc4970255291b (diff)
downloadbcm5719-llvm-8b086e38789796b575be2cc875dd8d67cd714338.tar.gz
bcm5719-llvm-8b086e38789796b575be2cc875dd8d67cd714338.zip
Add some const_casts in places where we were implicitly casting away constness. No functional change, but now they're explicit
llvm-svn: 305410
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/support/allocators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/support/allocators.h b/libcxx/test/support/allocators.h
index b1eea8d0b68..00e9a0c13ce 100644
--- a/libcxx/test/support/allocators.h
+++ b/libcxx/test/support/allocators.h
@@ -104,7 +104,7 @@ public:
T* allocate(std::size_t, const void* hint)
{
allocate_called = true;
- return (T*)hint;
+ return (T*) const_cast<void *>(hint);
}
};
OpenPOWER on IntegriCloud