Skip to content

Commit 3d646b0

Browse files
derekmaurocopybara-github
authored andcommitted
Replace ABSL_INTERNAL_UNREACHABLE with ABSL_UNREACHABLE()
PiperOrigin-RevId: 497197704 Change-Id: I3865a874e04f6f55a1ab374b03451535a86bc5a3
1 parent e1444d8 commit 3d646b0

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

absl/base/internal/raw_logging.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
ABSL_RAW_LOG_INTERNAL_##severity, absl_raw_log_internal_filename, \
7979
__LINE__, message); \
8080
if (ABSL_RAW_LOG_INTERNAL_##severity == ::absl::LogSeverity::kFatal) \
81-
ABSL_INTERNAL_UNREACHABLE; \
81+
ABSL_UNREACHABLE(); \
8282
} while (0)
8383

8484
#define ABSL_INTERNAL_CHECK(condition, message) \

absl/functional/internal/any_invocable.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#include "absl/base/config.h"
6767
#include "absl/base/internal/invoke.h"
6868
#include "absl/base/macros.h"
69+
#include "absl/base/optimization.h"
6970
#include "absl/meta/type_traits.h"
7071
#include "absl/utility/utility.h"
7172

@@ -281,7 +282,7 @@ void LocalManagerNontrivial(FunctionToCall operation,
281282
from_object.~T(); // Must not throw. // NOLINT
282283
return;
283284
}
284-
ABSL_INTERNAL_UNREACHABLE;
285+
ABSL_UNREACHABLE();
285286
}
286287

287288
// The invoker that is used when a target function is in local storage
@@ -319,7 +320,7 @@ inline void RemoteManagerTrivial(FunctionToCall operation,
319320
#endif // __cpp_sized_deallocation
320321
return;
321322
}
322-
ABSL_INTERNAL_UNREACHABLE;
323+
ABSL_UNREACHABLE();
323324
}
324325

325326
// The manager that is used when a target function is in remote storage and the
@@ -341,7 +342,7 @@ void RemoteManagerNontrivial(FunctionToCall operation,
341342
::delete static_cast<T*>(from->remote.target); // Must not throw.
342343
return;
343344
}
344-
ABSL_INTERNAL_UNREACHABLE;
345+
ABSL_UNREACHABLE();
345346
}
346347

347348
// The invoker that is used when a target function is in remote storage

absl/strings/internal/cord_rep_btree.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "absl/base/attributes.h"
2424
#include "absl/base/config.h"
2525
#include "absl/base/internal/raw_logging.h"
26+
#include "absl/base/optimization.h"
2627
#include "absl/strings/internal/cord_data_edge.h"
2728
#include "absl/strings/internal/cord_internal.h"
2829
#include "absl/strings/internal/cord_rep_consume.h"
@@ -286,7 +287,7 @@ struct StackOperations {
286287
case CordRepBtree::kSelf:
287288
return result.tree;
288289
}
289-
ABSL_INTERNAL_UNREACHABLE;
290+
ABSL_UNREACHABLE();
290291
return result.tree;
291292
}
292293

absl/synchronization/mutex.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
#include "absl/base/internal/sysinfo.h"
5555
#include "absl/base/internal/thread_identity.h"
5656
#include "absl/base/internal/tsan_mutex_interface.h"
57+
#include "absl/base/optimization.h"
5758
#include "absl/base/port.h"
5859
#include "absl/debugging/stacktrace.h"
5960
#include "absl/debugging/symbolize.h"
@@ -1791,7 +1792,7 @@ static intptr_t ClearDesignatedWakerMask(int flag) {
17911792
case 1: // blocked; turn off the designated waker bit
17921793
return ~static_cast<intptr_t>(kMuDesig);
17931794
}
1794-
ABSL_INTERNAL_UNREACHABLE;
1795+
ABSL_UNREACHABLE();
17951796
}
17961797

17971798
// Conditionally ignores the existence of waiting writers if a reader that has
@@ -1805,7 +1806,7 @@ static intptr_t IgnoreWaitingWritersMask(int flag) {
18051806
case 1: // blocked; pretend there are no waiting writers
18061807
return ~static_cast<intptr_t>(kMuWrWait);
18071808
}
1808-
ABSL_INTERNAL_UNREACHABLE;
1809+
ABSL_UNREACHABLE();
18091810
}
18101811

18111812
// Internal version of LockWhen(). See LockSlowWithDeadline()

0 commit comments

Comments
 (0)