gallivm: push LLVM version guard into assert
authorMihai Preda <mhpreda@gmail.com>
Sat, 23 Jul 2022 05:45:55 +0000 (08:45 +0300)
committerMarge Bot <emma+marge@anholt.net>
Sat, 23 Jul 2022 17:34:08 +0000 (17:34 +0000)
commitda9feae7355c15d489b916340ea2b62f9f8c0a7c
tree5059c959263994b9156b1fe249e9edb745dba2bf
parentf0fda08739e46dfcb552d4510c387130ee14874d
gallivm: push LLVM version guard into assert

The asserts that check the pointer element type can't be used on LLVM >= 15.
Instead of using precompiler #if, use boolean shortcut in assert.

Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17650>
src/gallium/auxiliary/gallivm/lp_bld_struct.c