# Revert "AstGen: preserve inferred ptr result loc for breaks" · gitcafe/zig

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

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

Visibility: public

Requested revision: c3ae909e935f1548408f2e400464370ee02b7e82

Requested commit: c3ae909e935f1548408f2e400464370ee02b7e82

Commit: c3ae909e935f1548408f2e400464370ee02b7e82

Tree: 165a355a68a838ec4fa894a0496ab471b0439a42

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "AstGen: preserve inferred ptr result loc for breaks"

This reverts commit 8bf3e1f8d0902abd4133e2729b3625c25011c3ff, which
introduced miscompilations for peer expressions any time they needed
coercions to runtime types.

I opened #11957 as a proposal to accomplish the goal of the reverted
commit.

Closes #11898

```

## Parents

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

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