ac/llvm: fix warning in ac_build_canonicalize()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Nov 2019 07:51:16 +0000 (08:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Nov 2019 07:35:10 +0000 (08:35 +0100)
commitf6770b9726c9721da4a8c77008979efdf39bc3b3
treeaf757203f1afcb5043edf10f778bee89027d0b3c
parent5d58fea660c36df0ce20c96a18628a373edba180
ac/llvm: fix warning in ac_build_canonicalize()

../src/amd/llvm/ac_llvm_build.c: In function ‘ac_build_canonicalize’:
../src/amd/llvm/ac_llvm_build.c:4567:9: warning: ‘intr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 4567 |  return ac_build_intrinsic(ctx, intr, type, params, 1,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4568 |       AC_FUNC_ATTR_READNONE);
      |       ~~~~~~~~~~~~~~~~~~~~~~
../src/amd/llvm/ac_llvm_build.c:4567:9: warning: ‘type’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/amd/llvm/ac_llvm_build.c