From 8d8dcb0ae550fbfdbd7392a3c9d2c5c596bdcde3 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 29 Sep 2017 08:44:28 -0700 Subject: Changes imported from Abseil "staging" branch: - b76f5d50e1cb55050ef6004d6097dfdf0a806ff5 Fix ABSL_HAVE_THREAD_LOCAL for iOS < 8.0. by Matt Armstrong - 1dc71788a3f4ef601e03cbea59e36901479cde35 Add missing #include to use __nop() on MSVC. by Derek Mauro - f63ca6c7e87a7961912995b518b93af41b04bfa1 Fix typo (implict -> implicit) by Abseil Team - 8096006dc52368f166ccd22e25fcee334e142508 Fix a typo. by Abseil Team - c673a4a59790329fab33536caed6733dc03ec2a1 Add missing ":" in TODO. by Abseil Team - 8125d214356501af0f3a8b3bb577eed083f0493f Fix comment nit. by Abseil Team GitOrigin-RevId: b76f5d50e1cb55050ef6004d6097dfdf0a806ff5 Change-Id: I0168eb0c92b20ece2fe5ee54573c7720d00fd0b3 --- absl/base/optimization.h | 1 + 1 file changed, 1 insertion(+) (limited to 'absl/base/optimization.h') diff --git a/absl/base/optimization.h b/absl/base/optimization.h index db8beafa3f2e..aaaffa495a9a 100644 --- a/absl/base/optimization.h +++ b/absl/base/optimization.h @@ -46,6 +46,7 @@ // GCC will not tail call given inline volatile assembly. #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() __asm__ __volatile__("") #elif defined(_MSC_VER) +#include // The __nop() intrinsic blocks the optimisation. #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() __nop() #else -- cgit 1.4.1