diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-10-10 16:43:06 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-10-10 16:43:06 +0000 |
commit | e723a27ffebe0f62d647c60eb8d71bd554631473 (patch) | |
tree | 622889f771daee1da92e33b4df89ed0e69e45775 /clang/lib/Sema/ScopeInfo.cpp | |
parent | 2bd991a1c09a94c76c8e38fa32e57ad7a9b111c8 (diff) | |
download | llvm-e723a27ffebe0f62d647c60eb8d71bd554631473.tar.gz |
-Warc-repeated-use-of-weak: look through explicit casts on assigned values.
Reading from a weak property, casting the result, and assigning to a
strong pointer should still be considered safe.
llvm-svn: 165629
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-rw-r--r-- | clang/lib/Sema/ScopeInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp index 7a9d917a0250..76f967d588be 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/lib/Sema/ScopeInfo.cpp @@ -115,7 +115,7 @@ FunctionScopeInfo::WeakObjectProfileTy::WeakObjectProfileTy( } void FunctionScopeInfo::markSafeWeakUse(const Expr *E) { - E = E->IgnoreParenImpCasts(); + E = E->IgnoreParenCasts(); if (const PseudoObjectExpr *POE = dyn_cast<PseudoObjectExpr>(E)) { markSafeWeakUse(POE->getSyntacticForm()); |