From: Pete Cooper Date: Mon, 11 Nov 2013 05:14:42 +0000 (+0000) Subject: Don't universally enable initialiser lists on GCC. Thanks for catching this Chandler X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38fb3fae3445716686b14e771e08a7ef7b27dec1;p=oota-llvm.git Don't universally enable initialiser lists on GCC. Thanks for catching this Chandler git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194365 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 5ce9abc49d4..860f43e9423 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -405,8 +405,7 @@ /// \brief Does the compiler support generalized initializers (using braced /// lists and std::initializer_list). -#if (__has_feature(cxx_generalized_initializers) \ -|| defined(__GXX_EXPERIMENTAL_CXX0X__)) +#if __has_feature(cxx_generalized_initializers) #define LLVM_HAS_INITIALIZER_LISTS 1 #else #define LLVM_HAS_INITIALIZER_LISTS 0