# LLVM backend: call constPtrToInt instead of constBitCast · gitcafe/zig

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

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

Visibility: public

Requested revision: d72f832b1ebab0db106e64bc9f59eba90c414311

Requested commit: d72f832b1ebab0db106e64bc9f59eba90c414311

Commit: d72f832b1ebab0db106e64bc9f59eba90c414311

Tree: 89716f3ddbd8f2ed0e2ce65938b0ac93a50f9b23

Author: Andrew Kelley

Committer: Jakub Konka

## Message

```
LLVM backend: call constPtrToInt instead of constBitCast

when appropriate. Avoids tripping an LLVM assertion.

```

## Parents

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

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