From b5173c8d45bbb1eae9900eea6231823041cac64f Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 18 Feb 2021 17:10:44 -0800 Subject: Export of internal Abseil changes -- f27dbf50d5db12279ab018f11c93ad1704043006 by Derek Mauro : Internal change PiperOrigin-RevId: 358298501 -- 864c141a59e20e96234c06700d7519d43bc73d71 by Derek Mauro : Annotates the duration-to-int64 and duration-to-double conversion functions as "pure" to potentially optimize out repeated calls with the same argument This adds an ABSL_ATTRIBUTE_PURE_FUNCTION macro for this purpose. PiperOrigin-RevId: 358247225 GitOrigin-RevId: f27dbf50d5db12279ab018f11c93ad1704043006 Change-Id: I5c2238911711b15d9d3ae53da44db788f20b402b --- absl/debugging/internal/stacktrace_powerpc-inl.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'absl/debugging/internal') diff --git a/absl/debugging/internal/stacktrace_powerpc-inl.inc b/absl/debugging/internal/stacktrace_powerpc-inl.inc index 5b2cdc2a..cf8c0516 100644 --- a/absl/debugging/internal/stacktrace_powerpc-inl.inc +++ b/absl/debugging/internal/stacktrace_powerpc-inl.inc @@ -132,9 +132,10 @@ static void **NextStackFrame(void **old_sp, const void *uc) { reinterpret_cast(uc); void **const sp_before_signal = #if defined(__PPC64__) - reinterpret_cast(signal_context->uc_mcontext.gp_regs[PT_R1]); + reinterpret_cast(signal_context->uc_mcontext.gp_regs[PT_R1]); #else - reinterpret_cast(signal_context->uc_mcontext.uc_regs->gregs[PT_R1]); + reinterpret_cast( + signal_context->uc_mcontext.uc_regs->gregs[PT_R1]); #endif // Check that alleged sp before signal is nonnull and is reasonably // aligned. -- cgit v1.2.3