nir/types: Add an is_error helper
2 files changed