summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-23 23:49:00 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-23 23:49:00 +0000
commit79f83eda848b474a7839220bc98306ac8eb56c9f (patch)
treed32df6f4ff893e9c5f80ac484e74375327b63f96 /clang/lib/Parse/ParseExpr.cpp
parent91ade1419748a8b092a6e634d2a126a01fb05f2d (diff)
downloadbcm5719-llvm-79f83eda848b474a7839220bc98306ac8eb56c9f.tar.gz
bcm5719-llvm-79f83eda848b474a7839220bc98306ac8eb56c9f.zip
This patch fixes the implementations of the __has_trivial_destructor
and __has_trivial_constructor builtin pseudo-functions and additionally implements __has_trivial_copy and __has_trivial_assign, from John McCall! llvm-svn: 76916
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index c2086b9e1a9..4720bcb5722 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -815,6 +815,8 @@ Parser::OwningExprResult Parser::ParseCastExpression(bool isUnaryExpression,
case tok::kw___is_polymorphic:
case tok::kw___is_abstract:
case tok::kw___has_trivial_constructor:
+ case tok::kw___has_trivial_copy:
+ case tok::kw___has_trivial_assign:
case tok::kw___has_trivial_destructor:
return ParseUnaryTypeTrait();
OpenPOWER on IntegriCloud