# llvm: fixup elem_count argument of ZigLLVMCreateDebugArrayType to be i64 · gitcafe/zig

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

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

Visibility: public

Requested revision: 9d66481e3df35b54275373a685e765a4bcebd712

Requested commit: 9d66481e3df35b54275373a685e765a4bcebd712

Commit: 9d66481e3df35b54275373a685e765a4bcebd712

Tree: 7265504b2f0cddd12ea07eb68d5b6e8c3d12778a

Author: kcbanner

Committer: Andrew Kelley

## Message

```
llvm: fixup elem_count argument of ZigLLVMCreateDebugArrayType to be i64

The signature is `getOrCreateSubrange(int64_t  Lo, int64_t  Count)`, so this updates the bindings to match.

This fixes a crash in `lowerDebugTypeImpl` when analyzing slices that have a length of 2^32 or
larger (up to `2^64 >> 3`, which still crashes, because above that the array size in bits overflows u64).

```

## Parents

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

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