diff options
author | Casey Carter <Casey@Carter.net> | 2017-05-04 15:54:09 +0000 |
---|---|---|
committer | Casey Carter <Casey@Carter.net> | 2017-05-04 15:54:09 +0000 |
commit | d50571b24443f19c4e762a5a4b044ee74c8ddf47 (patch) | |
tree | 9c52cfdea23951a7e097ef1092195a638068eecc | |
parent | b92cb07bad35dde8cce5dbdb94739f8e433ddedc (diff) | |
download | bcm5719-llvm-d50571b24443f19c4e762a5a4b044ee74c8ddf47.tar.gz bcm5719-llvm-d50571b24443f19c4e762a5a4b044ee74c8ddf47.zip |
[test] Name the local variable in the C1XX implementation of DoNotOptmize
Differential Revision: https://reviews.llvm.org/D32510
llvm-svn: 302162
-rw-r--r-- | libcxx/test/support/test_macros.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index cee1419407b..46fcb66fecf 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -209,7 +209,8 @@ inline void DoNotOptimize(Tp const& value) { #include <intrin.h> template <class Tp> inline void DoNotOptimize(Tp const& value) { - const volatile void* volatile = __builtin_addressof(value); + const volatile void* volatile unused = __builtin_addressof(value); + static_cast<void>(unused); _ReadWriteBarrier(); } #endif |