diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-05-21 10:29:28 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-05-21 10:29:28 +0000 |
commit | f54b80f2348ff49bedf4081ccd2f60e5d63a26c6 (patch) | |
tree | d33ea34e97f46aa63b82a9d0307877062d077f26 /lib/CodeGen/CGBlocks.cpp | |
parent | ee5042903d53fa7b0fbc1902d0ea07d57c7775b1 (diff) |
Add braces to avoid an ambiguous else, fixing a GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index d7e0d5fcbc..f49b6ee18b 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -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: |