Export of internal Abseil changes

--
155545fafefd0a0cef83853f1addea1ecf4a4618 by Derek Mauro <dmauro@google.com>:

Support ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS on MSVC

https://docs.microsoft.com/en-us/cpp/cpp/no-sanitize-address

PiperOrigin-RevId: 441737758
Change-Id: Ida9b185a929ffa22ad2ffdcfbd53076f69bfc036
GitOrigin-RevId: 155545fafefd0a0cef83853f1addea1ecf4a4618
pull/1157/head
Abseil Team 3 years ago committed by Derek Mauro
parent ac1398a629
commit 8c6e53ef3a
  1. 3
      absl/base/attributes.h

@ -213,6 +213,9 @@
// https://gcc.gnu.org/gcc-4.8/changes.html
#if ABSL_HAVE_ATTRIBUTE(no_sanitize_address)
#define ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
#elif defined(_MSC_VER) && _MSC_VER >= 1928
// https://docs.microsoft.com/en-us/cpp/cpp/no-sanitize-address
#define ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS __declspec(no_sanitize_address)
#else
#define ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS
#endif

Loading…
Cancel
Save