Revert "more code cleanup." Accidentally committed too much.

This reverts commit 4e476a57689da4acf3e3dd5d5e385b18b57d571c.

Swift SVN r8117
This commit is contained in:
Adrian Prantl
2013-09-11 22:57:50 +00:00
parent b287c3417e
commit b9ac293046
3 changed files with 5 additions and 8 deletions

View File

@@ -46,7 +46,8 @@ void SILFunction::setDeclContext(Decl *D) {
}
void SILFunction::setDeclContext(Expr *E) {
DeclCtx = dyn_cast_or_null<CapturingExpr>(E);
if (!E) return;
DeclCtx = dyn_cast<CapturingExpr>(E);
}
ASTContext &SILFunction::getASTContext() const {