return true;
}
}
- } else if (isa<ObjCAtTryStmt>(S)) {
- return true;
- }
+ }
return false;
}
if (StatementCreatesScope(*i)) {
ScopeStack.push_back(*i);
PopScopeMap[*i] = ParentCompoundStmt;
+ } else if (ObjCAtTryStmt *AT = dyn_cast<ObjCAtTryStmt>(*i)) {
+ ScopeStack.push_back(*i);
+ PopScopeMap[*i] = AT->getTryBody();
+ } else if (ObjCAtCatchStmt *AC = dyn_cast<ObjCAtCatchStmt>(*i)) {
+ ScopeStack.push_back(*i);
+ PopScopeMap[*i] = AC->getCatchBody();
+ } else if (ObjCAtFinallyStmt *AF = dyn_cast<ObjCAtFinallyStmt>(*i)) {
+ ScopeStack.push_back(*i);
+ PopScopeMap[*i] = AF->getFinallyBody();
} else if (isa<LabelStmt>(CurStmt)) {
LabelScopeMap[CurStmt] = ScopeStack.size() ? ScopeStack.back() : 0;
}