ac/nir: fix integer comparisons with pointers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 9 Jun 2020 06:36:17 +0000 (08:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 08:18:22 +0000 (08:18 +0000)
commit9b58c4958be690dc92278f4b435e729033add98c
tree0b904dd5346174ba8d008d1b37ee9433e4e80733
parent24ceb6a5946a9c76de5f9bd3009ed26bf0ca25dc
ac/nir: fix integer comparisons with pointers

If we get a comparison between a pointer and an integer, LLVM
complains if the operands aren't of the same type.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3085
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5397>
src/amd/llvm/ac_nir_to_llvm.c