diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-11 20:08:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-11 20:08:03 +0000 |
commit | ab0e8873c37bfcd292a17dafc61d6baff7caf30d (patch) | |
tree | 598f590713dca82042d9de659a8463ea760966ae /lib/AST/Expr.cpp | |
parent | e64941280877d065a27e8cefd2a9038256d0e3ac (diff) |
Fix rdar://7126285: don't warn on unused ObjC property access
that uses "dot syntax" since it might have a side effect.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index ce8bb516c0..6aa971112d 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -540,6 +540,7 @@ bool Expr::isUnusedResultAWarning(SourceLocation &Loc, SourceRange &R1, return false; } case ObjCMessageExprClass: + case ObjCKVCRefExprClass: // Dot syntax for message send. return false; case StmtExprClass: { // Statement exprs don't logically have side effects themselves, but are |