ir: Prevent crash in compiler error

Anonymous containers have no struct_field->type AstNode set, let's
always use the field node itself to make the error messages consistent.

Closes #4691
06d0dac0fbLemonBoy committed on 3/8/2020, 10:12:50 PM· committed by Andrew Kelleyparentf90fe1f
2 files changedLine totals unavailable