glsl: Get rid of null check warnings with GCC 12
The implementations of as_TYPE() for various GLSL IR types have
assert(this != NULL)
which GCC complains about starting with version
12. These asserts do actually seem reasonable since an assert is better
than just exploding so throw a pragma around it to shut up GCC.