diff options
author | Aaron Watry <[email protected]> | 2016-11-07 21:55:14 -0600 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2016-11-09 20:13:27 +0000 |
commit | 14926330703bb5ea6a84c845e192021f057f9401 (patch) | |
tree | 1bdb742a91b3f3fef0176f5e178e5f4befac1d36 /src/gallium/drivers/llvmpipe/lp_state_setup.c | |
parent | 8bdd52c8f3595128cbc1da4f23cdb10ff861a6ef (diff) |
llvmpipe: Fix build after removal of deprecated attribute API v2
Applies on top of v3 of Tom's gallivm change.
v2:
- Tom Stellard: Use enums instread of strings.
Reviewed-by: Nicolai Hähnle <[email protected]>
Signed-off-by: Aaron Watry <[email protected]>
CC: Tom Stellard <[email protected]>
CC: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_setup.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_setup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c index a57e2f04b6c..6b0df21b8ad 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c @@ -624,8 +624,7 @@ set_noalias(LLVMBuilderRef builder, int i; for(i = 0; i < nr_args; ++i) if(LLVMGetTypeKind(arg_types[i]) == LLVMPointerTypeKind) - LLVMAddAttribute(LLVMGetParam(function, i), - LLVMNoAliasAttribute); + lp_add_function_attr(function, i + 1, LP_FUNC_ATTR_NOALIAS); } static void |