forked from OSchip/llvm-project
enable __has_feature(is_standard_layout)
llvm-svn: 131240
This commit is contained in:
parent
36882c8f24
commit
2d3eadac9b
|
@ -593,6 +593,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
|
|||
.Case("is_empty", LangOpts.CPlusPlus)
|
||||
.Case("is_enum", LangOpts.CPlusPlus)
|
||||
.Case("is_literal", LangOpts.CPlusPlus)
|
||||
.Case("is_standard_layout", LangOpts.CPlusPlus)
|
||||
.Case("is_pod", LangOpts.CPlusPlus)
|
||||
.Case("is_polymorphic", LangOpts.CPlusPlus)
|
||||
.Case("is_trivial", LangOpts.CPlusPlus)
|
||||
|
|
|
@ -89,3 +89,8 @@ int is_union();
|
|||
int is_literal();
|
||||
#endif
|
||||
// CHECK: int is_literal();
|
||||
|
||||
#if __has_feature(is_standard_layout)
|
||||
int is_standard_layout();
|
||||
#endif
|
||||
// CHECK: int is_standard_layout();
|
||||
|
|
Loading…
Reference in New Issue