mirror of
https://github.com/google/benchmark.git
synced 2025-04-13 13:01:54 +08:00
fixed formating
This commit is contained in:
parent
f15bed1aad
commit
d7a42bc33a
@ -156,9 +156,10 @@ static void const volatile* volatile global_force_escape_pointer;
|
||||
|
||||
// FIXME: Verify if LTO still messes this up?
|
||||
void UseCharPointer(char const volatile* const v) {
|
||||
// We want to escape the pointer `v` so that the compiler can not eliminate computations
|
||||
// that produced it. To do that, we escape the pointer by storing it into a volatile variable,
|
||||
// since generally, volatile store, is not something the compiler is allowed to elide.
|
||||
// We want to escape the pointer `v` so that the compiler can not eliminate
|
||||
// computations that produced it. To do that, we escape the pointer by storing
|
||||
// it into a volatile variable, since generally, volatile store, is not
|
||||
// something the compiler is allowed to elide.
|
||||
global_force_escape_pointer = reinterpret_cast<void const volatile*>(v);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user