about summary refs log tree commit diff
path: root/third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc')
-rw-r--r--third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc b/third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc
index a5bb009d98..e5f59299b3 100644
--- a/third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc
+++ b/third_party/abseil_cpp/absl/container/fixed_array_exception_safety_test.cc
@@ -150,8 +150,7 @@ TEST(FixedArrayExceptionSafety, InitListConstructorWithAlloc) {
 
 template <typename FixedArrT>
 testing::AssertionResult ReadMemory(FixedArrT* fixed_arr) {
-  // Marked volatile to prevent optimization. Used for running asan tests.
-  volatile int sum = 0;
+  int sum = 0;
   for (const auto& thrower : *fixed_arr) {
     sum += thrower.Get();
   }