ac/nir/llvm: Fix setting function attributes for intrinsics
authorDaniel Scharrer <daniel@constexpr.org>
Fri, 11 Nov 2016 20:36:36 +0000 (21:36 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 11 Nov 2016 21:40:32 +0000 (22:40 +0100)
commit0b98e885e707a679fffb096aa802cfe4a80ce334
treebca094c54c3c9d28f3e8c8822187dcec9ef74ac4
parent74d5d393df23b13dd03dcb11b1798910dc339753
ac/nir/llvm: Fix setting function attributes for intrinsics

This fixes a NULL pointer dereference for intrinsics with more than
one function attribute introduced in commit 2fdaf38.
The fix is ported from the lp_build_intrinsic changes in commit 8bdd52c.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c