You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments