glsl2: Move constant_expression_value method to ir_rvalue.
This prevents top-level callers from asking for the value of something
that is guaranteed not to have one.
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index ca83497..44f4a64 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -96,7 +96,7 @@
ir_constant *
-ir_instruction::constant_expression_value()
+ir_rvalue::constant_expression_value()
{
ir_constant_visitor visitor;