summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-17 21:11:30 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-17 21:11:30 +0000
commit24824e50095b4abb41e14d2ad6fed6236987f10c (patch)
tree9b328951acdc62f32cce9e2fbbb9ac240d62de96 /clang/lib/AST/Expr.cpp
parent0e70d84e2958200cd7a9ea63f0aaf54b331d157d (diff)
downloadbcm5719-llvm-24824e50095b4abb41e14d2ad6fed6236987f10c.tar.gz
bcm5719-llvm-24824e50095b4abb41e14d2ad6fed6236987f10c.zip
Make ActOnExprStmt take a FullExprArg.
llvm-svn: 71989
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 3133a8f42c2..19ab835707b 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -594,6 +594,9 @@ bool Expr::isUnusedResultAWarning(SourceLocation &Loc, SourceRange &R1,
// effects (e.g. a placement new with an uninitialized POD).
case CXXDeleteExprClass:
return false;
+ case CXXExprWithTemporariesClass:
+ return cast<CXXExprWithTemporaries>(this)
+ ->getSubExpr()->isUnusedResultAWarning(Loc, R1, R2);
}
}
OpenPOWER on IntegriCloud