diff options
author | Timothy Arceri <[email protected]> | 2018-06-07 10:30:01 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-06-08 09:24:15 +1000 |
commit | fae3b38770cc524d28368b2287264668ce4e3e46 (patch) | |
tree | 7c50bfeead63090b97f9faa7a2e49f4f1a407b0a /src/amd/common/ac_llvm_build.c | |
parent | 4fc2d5e14125709d2eaa23d36f74f11bb760c73e (diff) |
ac: fix possible truncation of intrinsic name
Fixes the gcc warning:
snprintf’ output between 26 and 33 bytes into a destination of size 32
Fixes: d5f7ebda3ec0 ("ac: add LLVM build functions for subgroup instrinsics")
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.c')
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 4052488f03a..133003b779a 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -2995,7 +2995,7 @@ static LLVMValueRef ac_build_set_inactive(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef inactive) { - char name[32], type[8]; + char name[33], type[8]; LLVMTypeRef src_type = LLVMTypeOf(src); src = ac_to_integer(ctx, src); inactive = ac_to_integer(ctx, inactive); |