# codegen/llvm: fix memset with vectors smaller than one byte · gitcafe/zig

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

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

Visibility: public

Requested revision: 5ab185460282eedb6e1d673041a4579eaacbc6ad

Requested commit: 5ab185460282eedb6e1d673041a4579eaacbc6ad

Commit: 5ab185460282eedb6e1d673041a4579eaacbc6ad

Tree: 57aeacff851cc445215f6384b0877ea222e60b42

Author: Xavier Bouchoux

Committer: Andrew Kelley

## Message

````
codegen/llvm: fix memset with vectors smaller than one byte

The special case to take advantage of llvm's intrinsic
was generating invalid llvm ir:

```
Invalid bitcast
  %60 = bitcast <2 x i2> %59 to i8, !dbg !3122
thread 145453 panic: LLVM module verification failed
```

````

## Parents

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

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