From: Michael Lee <mzlee@fb.com>
Date: Wed, 20 Apr 2016 02:47:54 +0000 (-0700)
Subject: Backward compatibility for older versions of clang.
X-Git-Tag: 2016.07.26~341
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=007d2a6b5af5f2b898204d86558a949076f35c05;p=folly.git

Backward compatibility for older versions of clang.

Summary: `__attribute__((no_sanitize("address")))` is not valid in clang 3.6 and earlier

Reviewed By: skotchvail

Differential Revision: D3197412

fb-gh-sync-id: bd555b030fe48268988299dd88b9b7aea54c1a73
fbshipit-source-id: bd555b030fe48268988299dd88b9b7aea54c1a73
---

diff --git a/folly/MicroLock.h b/folly/MicroLock.h
index 5c509553..15c8d414 100644
--- a/folly/MicroLock.h
+++ b/folly/MicroLock.h
@@ -23,7 +23,7 @@
 #include <folly/Portability.h>
 
 #if defined(__clang__)
-#define NO_SANITIZE_ADDRESS __attribute__((__no_sanitize__("address")))
+#define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
 #else
 #define NO_SANITIZE_ADDRESS
 #endif