On 20 September 2011 18:28, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp<br>
index d6594cd..70d0ae2 100644<br>
--- a/src/glsl/ir.cpp<br>
+++ b/src/glsl/ir.cpp<br>
@@ -725,6 +725,15 @@ ir_constant::zero(void *mem_ctx, const glsl_type *type)<br>
return c;<br>
}<br>
<br>
+ir_constant *<br>
+ir_constant::error_value(void *ctx)<br>
+{<br>
+ ir_constant *ir = new(ctx) ir_constant;<br>
+<br>
+ ir->type = glsl_type::error_type;<br>
+ return ir;<br>
+}<br>
+<br>
bool<br>
ir_constant::get_bool_component(unsigned i) const<br>
{<br>
@@ -1446,16 +1455,6 @@ ir_function::has_user_signature()<br>
return false;<br>
}<br>
<br>
-<br>
-ir_call *<br>
-ir_call::get_error_instruction(void *ctx)<br>
-{<br>
- ir_call *call = new(ctx) ir_call;<br>
-<br>
- call->type = glsl_type::error_type;<br>
- return call;<br>
-}<br>
-<br></blockquote><div><br>I believe this was the only code that used the private constructor ir_call::ir_call() (the one that took no parameters), so we should probably remove that too.<br></div></div>