From 6a85e8a355be05b9efa8408f875014e6b47cef3b Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 22 Sep 2015 21:58:30 +0000 Subject: [PATCH] Fix Typo in GCC no RTTI detection. Fixes PR#24901. Thanks to Bernhard Rosenkraenzer for the report and the patch. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248329 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/__config b/include/__config index 55410972..73e653c1 100644 --- a/include/__config +++ b/include/__config @@ -744,7 +744,7 @@ extern "C" void __sanitizer_annotate_contiguous_container( // g++ and cl.exe have RTTI on by default and define a macro when it is. // g++ only defines the macro in 4.3.2 and onwards. #if !defined(_LIBCPP_NO_RTTI) -# if defined(__GNUG__) && ((__GNUC__ >= 5) || (__GNUC__ == 4 && \ +# if defined(__GNUC__) && ((__GNUC__ >= 5) || (__GNUC__ == 4 && \ (__GNUC_MINOR__ >= 3 || __GNUC_PATCHLEVEL__ >= 2))) && !defined(__GXX_RTTI) # define _LIBCPP_NO_RTTI # elif (defined(_MSC_VER) && !defined(__clang__)) && !defined(_CPPRTTI)