# fix x86_64 crashes for switch_block_err_union · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b7eb59fc140f3263b608a80fbe4e1ab56e04b318)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b7eb59fc140f3263b608a80fbe4e1ab56e04b318

Requested commit: b7eb59fc140f3263b608a80fbe4e1ab56e04b318

Commit: b7eb59fc140f3263b608a80fbe4e1ab56e04b318

Tree: bb68023b3273d2c1343fe79fedf1d9b87a8ed943

Author: dweiller

Committer: dweiller

## Message

```
fix x86_64 crashes for switch_block_err_union

This change only emits the unwrap_errunion_err instruction if the error
capture is actually used in a branch.

```

## Parents

- [adcaad6d91c309fab20ea208231c3e7d33fcc21f](https://git.cafe/gitcafe/zig/commit/adcaad6d91c309fab20ea208231c3e7d33fcc21f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b7eb59fc140f3263b608a80fbe4e1ab56e04b318?format=markdown)
