Rename ImplicitClosureExpr -> AutoClosureExpr

Swift SVN r8304
This commit is contained in:
Dmitri Hrybenko
2013-09-16 23:03:50 +00:00
parent 10291e0334
commit b18c38a322
17 changed files with 49 additions and 66 deletions

View File

@@ -37,7 +37,7 @@ static unsigned getFuncNaturalUncurryLevel(PipeClosureExpr *CE) {
return Level;
}
static unsigned getFuncNaturalUncurryLevel(ImplicitClosureExpr *CE) {
static unsigned getFuncNaturalUncurryLevel(AutoClosureExpr *CE) {
assert(CE->getParamPatterns().size() >= 1 && "no arguments for func?!");
unsigned Level = CE->getParamPatterns().size() - 1;
// Functions with captures have an extra uncurry level for the capture
@@ -197,7 +197,7 @@ SILDeclRef::SILDeclRef(SILDeclRef::Loc baseLoc,
"no param patterns for function?!");
naturalUncurryLevel = getFuncNaturalUncurryLevel(PCE);
} else {
auto *CE = baseLoc.dyn_cast<ImplicitClosureExpr *>();
auto *CE = baseLoc.dyn_cast<AutoClosureExpr *>();
loc = CE;
kind = Kind::Func;
assert(CE->getParamPatterns().size() >= 1 &&