compiler: call runtime.eqtype for non-interface type switch on aix

All type switch clauses must call runtime.eqtype if the linker isn't
able to merge type descriptors pointers. Previously, only interface-type
clauses were doing it.

Updates golang/go#39276

Change-Id: Ic06d95081e837122c409a2aba377d1afae676342
Reviewed-by: Cherry Zhang <>
Reviewed-by: Ian Lance Taylor <>
Trust: Cherry Zhang <>
2 files changed