summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-13 06:31:38 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-13 06:31:38 +0000
commitd65cee9423e7e2362078bca9ada5fae735e84283 (patch)
tree30f273567f4bed880e34d67d68adac7ea9e018eb /clang/lib/AST/Expr.cpp
parent374f19cade3c9ca8a9d008e2a9529376552dd93a (diff)
downloadbcm5719-llvm-d65cee9423e7e2362078bca9ada5fae735e84283.tar.gz
bcm5719-llvm-d65cee9423e7e2362078bca9ada5fae735e84283.zip
Implement __atomic_fetch_nand and __atomic_nand_fetch to complete our set of
GNU __atomic builtins. llvm-svn: 154659
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index eb185b2c5a0..868109e3d56 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -3879,11 +3879,13 @@ unsigned AtomicExpr::getNumSubExprs(AtomicOp Op) {
case AO__atomic_fetch_and:
case AO__atomic_fetch_or:
case AO__atomic_fetch_xor:
+ case AO__atomic_fetch_nand:
case AO__atomic_add_fetch:
case AO__atomic_sub_fetch:
case AO__atomic_and_fetch:
case AO__atomic_or_fetch:
case AO__atomic_xor_fetch:
+ case AO__atomic_nand_fetch:
return 3;
case AO__atomic_exchange:
OpenPOWER on IntegriCloud