diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-10-11 17:02:00 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-10-11 17:02:00 +0000 |
commit | b1e3e5f553024fcdb5436081854f7d9c3f12852b (patch) | |
tree | 580abfb1782897bf9f42aa079d78be7ddb5e1a19 /clang/lib/Sema/ScopeInfo.cpp | |
parent | 57b7e8f63fea1225c4e18e6a42daae37a86f63f4 (diff) | |
download | bcm5719-llvm-b1e3e5f553024fcdb5436081854f7d9c3f12852b.tar.gz bcm5719-llvm-b1e3e5f553024fcdb5436081854f7d9c3f12852b.zip |
-Warc-repeated-use-of-weak: fix a use-of-uninitialized and add a test case.
Fix-up for r165718, should get the buildbots back online.
llvm-svn: 165723
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 c1d66299058..4d29a34a73e 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/lib/Sema/ScopeInfo.cpp @@ -159,7 +159,7 @@ void FunctionScopeInfo::markSafeWeakUse(const Expr *E) { Uses = WeakObjectUses.find(WeakObjectProfileTy(IvarE)); else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E)) Uses = WeakObjectUses.find(WeakObjectProfileTy(DRE)); - else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(MsgE)) { + else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { Uses = WeakObjectUses.end(); if (const ObjCMethodDecl *MD = MsgE->getMethodDecl()) { if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { |