Skip to content

Commit

Permalink
[test] Name the local variable in the C1XX implementation of DoNotOpt…
Browse files Browse the repository at this point in the history
…mize

Differential Revision: https://reviews.llvm.org/D32510

llvm-svn: 302162
  • Loading branch information
CaseyCarter committed May 4, 2017
1 parent b92cb07 commit d50571b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcxx/test/support/test_macros.h
Expand Up @@ -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
Expand Down

0 comments on commit d50571b

Please sign in to comment.