Whatever checkType was supposed to do, all it did was return m_ptr, which is useless, and the only other constexpr that uses it was RetainPtr. This also confuses ARC, which could not follow the logic for some reason.
Pull request: https://github.com/WebKit/WebKit/pull/11297
<rdar://problem/106808845>