Use array delete operator to delete an array

This was detected by valgrind.  I think GCC still does the right
thing, but the C++ spec allows the compiler to do something
stupid... like crash or only delete the first entry in the array.
This commit is contained in:
Ian Romanick 2010-06-09 11:00:00 -07:00
parent cfb3536f10
commit 2f8b0435b0

View file

@ -411,7 +411,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
param_iter.next();
}
delete(parameters);
delete [] parameters;
if (retval)
return new ir_dereference_variable(retval);