# x86 backend: don't read bogus safety flag · gitcafe/zig

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

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

Visibility: public

Requested revision: 3e79315d19c7dfe5f9b90185d8030209ef8dd829

Requested commit: 3e79315d19c7dfe5f9b90185d8030209ef8dd829

Commit: 3e79315d19c7dfe5f9b90185d8030209ef8dd829

Tree: 28be901fb7fa95af1e73bd4c6b8297421b916570

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
x86 backend: don't read bogus safety flag

Safety is not a global flag that should be enabled or disabled for all
stores - it's lowered by the frontend directly into AIR instruction
semantics. The flag for this is communicated via the `store` vs
`store_safe` AIR instructions, and whether to write 0xaa bytes or not
should be decided in `airStore` and passed down via function parameters.

This commit is a step backwards since it removes functionality but it
aims our feet towards a better mountain to climb.

```

## Parents

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

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