daniel-levin updated this revision to Diff 351710. daniel-levin added a comment.
Responded to comments from Saleem. Apologies for the noise in getting the diff correct. I had not used arc before. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104176/new/ https://reviews.llvm.org/D104176 Files: libunwind/src/libunwind.cpp Index: libunwind/src/libunwind.cpp =================================================================== --- libunwind/src/libunwind.cpp +++ libunwind/src/libunwind.cpp @@ -16,7 +16,13 @@ #include <stdlib.h> -#if __has_feature(address_sanitizer) +// Define the __has_feature extension for compilers that do not support it so that +// we can later check for the presence of ASan in a compiler-neutral way. +#if !defined(__has_feature) +#define __has_feature(feature) 0 +#endif + +#if __has__feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) #include <sanitizer/asan_interface.h> #endif
Index: libunwind/src/libunwind.cpp =================================================================== --- libunwind/src/libunwind.cpp +++ libunwind/src/libunwind.cpp @@ -16,7 +16,13 @@ #include <stdlib.h> -#if __has_feature(address_sanitizer) +// Define the __has_feature extension for compilers that do not support it so that +// we can later check for the presence of ASan in a compiler-neutral way. +#if !defined(__has_feature) +#define __has_feature(feature) 0 +#endif + +#if __has__feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) #include <sanitizer/asan_interface.h> #endif
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits