# Sema: fix crash compiling \`@shlExact\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 10016e0368c382363e168e45fac2cca4bc64e38f

Requested commit: 10016e0368c382363e168e45fac2cca4bc64e38f

Commit: 10016e0368c382363e168e45fac2cca4bc64e38f

Tree: ca3e36c7c8e26b5c9353a40602d07293933a3a9c

Author: amp-59

Committer: Andrew Kelley

## Message

```
Sema: fix crash compiling `@shlExact`

Updated `zirShl`, to compute `shl_exact` with `comptime_int` LHS operand
like `shl`, and added test case for `@shlExact` with `comptime_int` LHS
operand.

```

## Parents

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

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