diff options
author | Abseil Team <absl-team@google.com> | 2023-05-11 14:04:11 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-05-11 14:05:07 -0700 |
commit | 2526926b9275076b03159e7e0a9f1f32b9ed8d09 (patch) | |
tree | bf28a9f3ec83de9009c7f612fc47b80c5f5aa512 /absl/functional/any_invocable_test.cc | |
parent | 67f9650c93a4fa04728a5b754ae8297d2c55d898 (diff) |
Remove ABSL_HARDENING_ASSERT in AnyInvocable to avoid performance impact in optimized builds
PiperOrigin-RevId: 531301442
Change-Id: Ib5a67f827bf89a66a0a8d24d3191f278566af6c8
Diffstat (limited to 'absl/functional/any_invocable_test.cc')
-rw-r--r-- | absl/functional/any_invocable_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/functional/any_invocable_test.cc b/absl/functional/any_invocable_test.cc index 10a4dee5..a740faa6 100644 --- a/absl/functional/any_invocable_test.cc +++ b/absl/functional/any_invocable_test.cc @@ -1418,7 +1418,7 @@ TYPED_TEST_P(AnyInvTestRvalue, NonConstCrashesOnSecondCall) { // Ensure we're still valid EXPECT_TRUE(static_cast<bool>(fun)); // NOLINT(bugprone-use-after-move) -#if !defined(NDEBUG) || ABSL_OPTION_HARDENED == 1 +#if !defined(NDEBUG) EXPECT_DEATH_IF_SUPPORTED(std::move(fun)(7, 8, 9), ""); #endif } |