Commits

Slava Pestov committed 02eb552504a
Sema: Two small cleanups for inout capture @noescape change 1) ValueDecl::hasInterfaceType() is broken because it means "we have computed the interface type" not "there is an interface type that can be computed". The distinction comes into play with decls where the interface type is never set explicitly. 2) Use foo->is<InOutType>() instead of isa<InOutType>(foo.getPointer()); this is cleaner. 3) Use DeclContext::isLocalContext() instead of checking if the context is an AbstractFunctionDecl. These should be NFC for the most part.