nir/algebraic: Don't emit empty initializers for MSVC
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 2 May 2019 20:22:01 +0000 (22:22 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 3 May 2019 22:13:21 +0000 (00:13 +0200)
commitd0ea9877b830ab2fe8948e70846efb5fff78cf0c
treef4f889a21ecf31667a7b25c918fafa457953350c
parent8987152ac16153999c972f08b6864c5e5ec9bdfb
nir/algebraic: Don't emit empty initializers for MSVC

Just don't emit the transform array at all if there are no transforms

v2:
- Don't use len(array) > 0 (Dylan)
- Keep using ARRAY_SIZE to make the generated C code easier to read
(Jason).
src/compiler/nir/nir_algebraic.py