# ir: Implement more safety checks for shl/shr · gitcafe/zig

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

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

Visibility: public

Requested revision: 300fceac6eca99fd858678b03a47357e72856e10

Requested commit: 300fceac6eca99fd858678b03a47357e72856e10

Commit: 300fceac6eca99fd858678b03a47357e72856e10

Tree: e0a165d8ce2bdb1b394acf16e8b1a465ab84f9a8

Author: LemonBoy

Committer: LemonBoy

## Message

```
ir: Implement more safety checks for shl/shr

The checks are now valid on types whose size is not a power of two.

Closes #2096

```

## Parents

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

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