ac: rework ac_llvm_extract_elem()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 13 Dec 2017 07:46:56 +0000 (18:46 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 5 Jan 2018 01:20:38 +0000 (12:20 +1100)
commit4a0c24f2dd97c670259a7ab0ced701dbf9bb5dd7
tree4e9029569c8aed6a90a7e2ada5f19bac49a59ab7
parent71f82dc9a3d9823f91e4cf9d5ab9d54047ba8ce4
ac: rework ac_llvm_extract_elem()

Simplifies the logic a little and asserts index is 0.

Suggested-by: Nicolai Hähnle <nhaehnle@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_llvm_build.c