Use the correct LHS type when determining the legalization of a shift's RHS type.