[mlir][spirv] Fix crash in spirv-lower-abi-attributes
authorJakub Kuderski <kubak@google.com>
Fri, 13 Jan 2023 15:55:04 +0000 (10:55 -0500)
committerJakub Kuderski <kubak@google.com>
Fri, 13 Jan 2023 15:59:48 +0000 (10:59 -0500)
commit466aa585c6dfb096bf9a7ad9bcbc6ce8cc7abff1
tree1a3d3d78a0c53304126c8b7802c6cfc46ed8493d
parentf94131a2a502118e0507164dcef160d1cfecb316
[mlir][spirv] Fix crash in spirv-lower-abi-attributes

... when the are no SPIR-V env attributes.

Fixes: https://github.com/llvm/llvm-project/issues/59983

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D141695
mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp
mlir/test/Dialect/SPIRV/Transforms/abi-interface.mlir