glsl: Ensure that we are dealing with ir_variable and ir_rvalue
What does this MR do and why?
Use the built-in function from ir_instruction to make sure that we are actually
not casting to anther type by mistake.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.