Sema: improve union support

* reduce number of branches in zirCmpEq
 * implement equality comparison for enums and unions
 * fix coercion from union to its tag type resulting in the wrong type
 * fix method calls of unions
 * implement peer type resolution for unions, enums, and enum literals
 * fix union tag type memory in the wrong arena
81a3910e44Andrew Kelley committed on 12/29/2021, 3:20:30 AMparent6229d37
5 files changedLine totals unavailable