summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-09-24 23:02:26 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-09-24 23:02:26 +0000
commitbdd5753bda04e2724f2a9354c045a55bca046c27 (patch)
tree9278d7e2ca5cc8c1c9886f0ea685150d22d0f8de /clang/lib
parent93b3eb77930a553ef49d9f2af9c877309a11da85 (diff)
downloadbcm5719-llvm-bdd5753bda04e2724f2a9354c045a55bca046c27.tar.gz
bcm5719-llvm-bdd5753bda04e2724f2a9354c045a55bca046c27.zip
Handle C++ functional casts in a similar way to C-style casts in
unused expression warnings. <rdar://problem/12359208>. llvm-svn: 164569
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 74308a00939..30342585c8e 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -2019,6 +2019,7 @@ bool Expr::isUnusedResultAWarning(const Expr *&WarnE, SourceLocation &Loc,
R1 = getSourceRange();
return true;
}
+ case CXXFunctionalCastExprClass:
case CStyleCastExprClass: {
// Ignore an explicit cast to void unless the operand is a non-trivial
// volatile lvalue.
OpenPOWER on IntegriCloud