mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
After recent changes, this asserts on all decls that are not VarDecls, so we can just enforce that statically now. Interestingly, this turns up some dead code which would have asserted immediately if called. Also, replace AnyFunctionRef::getType() with AnyFunctionRef::getInterfaceType(), since the old AnyFunctionRef::getType() would just assert when called on a Decl.
6.2 KiB
6.2 KiB