Commit 32f6bad2 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot

Test whether `FOLLY_TLS` is defined before using it

Summary: FOLLY_TLS is not guaranteed to be defined, so add a check

Differential Revision: D9952230

fbshipit-source-id: 1f85d1ec39514b5b3c355339a74d067ecd85b267
parent c1211838
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#include <folly/container/detail/F14Defaults.h> #include <folly/container/detail/F14Defaults.h>
#include <folly/container/detail/F14IntrinsicsAvailability.h> #include <folly/container/detail/F14IntrinsicsAvailability.h>
#if FOLLY_SANITIZE_ADDRESS #if FOLLY_SANITIZE_ADDRESS && defined(FOLLY_TLS)
#define FOLLY_F14_TLS_IF_ASAN FOLLY_TLS #define FOLLY_F14_TLS_IF_ASAN FOLLY_TLS
#else #else
#define FOLLY_F14_TLS_IF_ASAN #define FOLLY_F14_TLS_IF_ASAN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment