Add braces to avoid an ambiguous else, fixing a GCC warning.

llvm-svn: 104314
This commit is contained in:
Chandler Carruth 2010-05-21 10:29:28 +00:00
parent 9d42f0f174
commit 7ea01c3f8a
1 changed files with 2 additions and 1 deletions

View File

@ -157,10 +157,11 @@ static void CollectBlockDeclRefInfo(const Stmt *S, CGBlockInfo &Info) {
}
// Make sure to capture implicit 'self' references due to super calls.
else if (const ObjCMessageExpr *E = dyn_cast<ObjCMessageExpr>(S))
else if (const ObjCMessageExpr *E = dyn_cast<ObjCMessageExpr>(S)) {
if (E->getReceiverKind() == ObjCMessageExpr::SuperClass ||
E->getReceiverKind() == ObjCMessageExpr::SuperInstance)
Info.NeedsObjCSelf = true;
}
// Getter/setter uses may also cause implicit super references,
// which we can check for with: