1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-13 13:01:54 +08:00

fixed formating

This commit is contained in:
Tiago Freire 2024-03-06 00:00:13 +01:00
parent f15bed1aad
commit d7a42bc33a
No known key found for this signature in database
GPG Key ID: 67C8701B75172B17

View File

@ -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);
}