ir: Fix comparison of ?T values

The code assumed that every ?T had a pointer child type T, add some more
checks to make sure the type is effectively a pointer.

Closes #4789
6695fa4f32LemonBoy committed on 4/1/2020, 7:56:38 PM· committed by Andrew Kelleyparent212e235
2 files changedLine totals unavailable