Commit 3d646b08 by Derek Mauro Committed by Copybara-Service

Replace ABSL_INTERNAL_UNREACHABLE with ABSL_UNREACHABLE()

PiperOrigin-RevId: 497197704
Change-Id: I3865a874e04f6f55a1ab374b03451535a86bc5a3
parent e1444d8f
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
ABSL_RAW_LOG_INTERNAL_##severity, absl_raw_log_internal_filename, \ ABSL_RAW_LOG_INTERNAL_##severity, absl_raw_log_internal_filename, \
__LINE__, message); \ __LINE__, message); \
if (ABSL_RAW_LOG_INTERNAL_##severity == ::absl::LogSeverity::kFatal) \ if (ABSL_RAW_LOG_INTERNAL_##severity == ::absl::LogSeverity::kFatal) \
ABSL_INTERNAL_UNREACHABLE; \ ABSL_UNREACHABLE(); \
} while (0) } while (0)
#define ABSL_INTERNAL_CHECK(condition, message) \ #define ABSL_INTERNAL_CHECK(condition, message) \
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
#include "absl/base/config.h" #include "absl/base/config.h"
#include "absl/base/internal/invoke.h" #include "absl/base/internal/invoke.h"
#include "absl/base/macros.h" #include "absl/base/macros.h"
#include "absl/base/optimization.h"
#include "absl/meta/type_traits.h" #include "absl/meta/type_traits.h"
#include "absl/utility/utility.h" #include "absl/utility/utility.h"
...@@ -281,7 +282,7 @@ void LocalManagerNontrivial(FunctionToCall operation, ...@@ -281,7 +282,7 @@ void LocalManagerNontrivial(FunctionToCall operation,
from_object.~T(); // Must not throw. // NOLINT from_object.~T(); // Must not throw. // NOLINT
return; return;
} }
ABSL_INTERNAL_UNREACHABLE; ABSL_UNREACHABLE();
} }
// The invoker that is used when a target function is in local storage // The invoker that is used when a target function is in local storage
...@@ -319,7 +320,7 @@ inline void RemoteManagerTrivial(FunctionToCall operation, ...@@ -319,7 +320,7 @@ inline void RemoteManagerTrivial(FunctionToCall operation,
#endif // __cpp_sized_deallocation #endif // __cpp_sized_deallocation
return; return;
} }
ABSL_INTERNAL_UNREACHABLE; ABSL_UNREACHABLE();
} }
// The manager that is used when a target function is in remote storage and the // The manager that is used when a target function is in remote storage and the
...@@ -341,7 +342,7 @@ void RemoteManagerNontrivial(FunctionToCall operation, ...@@ -341,7 +342,7 @@ void RemoteManagerNontrivial(FunctionToCall operation,
::delete static_cast<T*>(from->remote.target); // Must not throw. ::delete static_cast<T*>(from->remote.target); // Must not throw.
return; return;
} }
ABSL_INTERNAL_UNREACHABLE; ABSL_UNREACHABLE();
} }
// The invoker that is used when a target function is in remote storage // The invoker that is used when a target function is in remote storage
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "absl/base/attributes.h" #include "absl/base/attributes.h"
#include "absl/base/config.h" #include "absl/base/config.h"
#include "absl/base/internal/raw_logging.h" #include "absl/base/internal/raw_logging.h"
#include "absl/base/optimization.h"
#include "absl/strings/internal/cord_data_edge.h" #include "absl/strings/internal/cord_data_edge.h"
#include "absl/strings/internal/cord_internal.h" #include "absl/strings/internal/cord_internal.h"
#include "absl/strings/internal/cord_rep_consume.h" #include "absl/strings/internal/cord_rep_consume.h"
...@@ -286,7 +287,7 @@ struct StackOperations { ...@@ -286,7 +287,7 @@ struct StackOperations {
case CordRepBtree::kSelf: case CordRepBtree::kSelf:
return result.tree; return result.tree;
} }
ABSL_INTERNAL_UNREACHABLE; ABSL_UNREACHABLE();
return result.tree; return result.tree;
} }
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#include "absl/base/internal/sysinfo.h" #include "absl/base/internal/sysinfo.h"
#include "absl/base/internal/thread_identity.h" #include "absl/base/internal/thread_identity.h"
#include "absl/base/internal/tsan_mutex_interface.h" #include "absl/base/internal/tsan_mutex_interface.h"
#include "absl/base/optimization.h"
#include "absl/base/port.h" #include "absl/base/port.h"
#include "absl/debugging/stacktrace.h" #include "absl/debugging/stacktrace.h"
#include "absl/debugging/symbolize.h" #include "absl/debugging/symbolize.h"
...@@ -1791,7 +1792,7 @@ static intptr_t ClearDesignatedWakerMask(int flag) { ...@@ -1791,7 +1792,7 @@ static intptr_t ClearDesignatedWakerMask(int flag) {
case 1: // blocked; turn off the designated waker bit case 1: // blocked; turn off the designated waker bit
return ~static_cast<intptr_t>(kMuDesig); return ~static_cast<intptr_t>(kMuDesig);
} }
ABSL_INTERNAL_UNREACHABLE; ABSL_UNREACHABLE();
} }
// Conditionally ignores the existence of waiting writers if a reader that has // Conditionally ignores the existence of waiting writers if a reader that has
...@@ -1805,7 +1806,7 @@ static intptr_t IgnoreWaitingWritersMask(int flag) { ...@@ -1805,7 +1806,7 @@ static intptr_t IgnoreWaitingWritersMask(int flag) {
case 1: // blocked; pretend there are no waiting writers case 1: // blocked; pretend there are no waiting writers
return ~static_cast<intptr_t>(kMuWrWait); return ~static_cast<intptr_t>(kMuWrWait);
} }
ABSL_INTERNAL_UNREACHABLE; ABSL_UNREACHABLE();
} }
// Internal version of LockWhen(). See LockSlowWithDeadline() // Internal version of LockWhen(). See LockSlowWithDeadline()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment