# Add missing clobbers to context switching · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b5306a94b0c2bf83f10e4634cec77a19dd2e08d

Requested commit: 2b5306a94b0c2bf83f10e4634cec77a19dd2e08d

Commit: 2b5306a94b0c2bf83f10e4634cec77a19dd2e08d

Tree: 348f490da048b1fc322c3e29416d2587e3b0ae0d

Author: Lukas Lalinsky

Committer: Andrew Kelley

## Message

```
Add missing clobbers to context switching

This only shows in release mode, the compiler tries to preserve some
value in rdi, but that gets replaced inside the fiber. This would not
happen in the C calling convention, but in these normal Zig functions,
it can happen.

```

## Parents

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

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