clspv
clspv copied to clipboard
Constant generation produces potentially invalid OpConstantNull
Constant generation in SPIRProducerPass has a case for a constant being a null value Cst->isNullValue(). SPIR-V does not allow all types to be used with OpConstantNull (e.g. samplers and images). A different opcode must be generated for those cases (maybe OpUndef).