[inliner] remove bogus upcast detection (closes #3486)