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 | 7ea01c3f8acf6ecb42b1eeda5186024401186766 (patch) | |
tree | 507c2be83c4f7fa40d31171a4011a15be514947b /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 9d42f0f174aa86e7434b0e385469bd0db6dc66cf (diff) | |
download | bcm5719-llvm-7ea01c3f8acf6ecb42b1eeda5186024401186766.tar.gz bcm5719-llvm-7ea01c3f8acf6ecb42b1eeda5186024401186766.zip |
Add braces to avoid an ambiguous else, fixing a GCC warning.
llvm-svn: 104314
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index d7e0d5fcbc1..f49b6ee18b8 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/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: |