summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-05-13 00:31:07 +0000
committerAlexis Hunt <alercah@gmail.com>2011-05-13 00:31:07 +0000
commitd9a5cc13cf51639690d80bf9f2fe042b61d49dd1 (patch)
tree54c51d7eb063a57faac37630f4113330444bc4e3 /clang/lib/Lex
parent8d57d8ea64cb83173c6503acec7da4215da9ed19 (diff)
downloadbcm5719-llvm-d9a5cc13cf51639690d80bf9f2fe042b61d49dd1.tar.gz
bcm5719-llvm-d9a5cc13cf51639690d80bf9f2fe042b61d49dd1.zip
Implement the __is_trivially_copyable type trait
llvm-svn: 131270
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index ce7acf7806f..bc3c9b5a59c 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -597,6 +597,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
.Case("is_pod", LangOpts.CPlusPlus)
.Case("is_polymorphic", LangOpts.CPlusPlus)
.Case("is_trivial", LangOpts.CPlusPlus)
+ .Case("is_trivially_copyable", LangOpts.CPlusPlus)
.Case("is_union", LangOpts.CPlusPlus)
.Case("tls", PP.getTargetInfo().isTLSSupported())
.Default(false);
OpenPOWER on IntegriCloud