Check for inactive union field when calling fn at comptime

Reuse `unionFieldPtr` here to ensure that all the safety checks are
included.

Closes https://github.com/ziglang/zig/issues/18546.
7a045ede7cJohn Schmidt committed on 2/27/2024, 12:55:17 AM· committed by Andrew Kelleyparent3e79c0f
2 files changedLine totals unavailable