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.
diff --git a/ir_function_inlining.cpp b/ir_function_inlining.cpp
index 7ac74ca..7cc8a32 100644
--- a/ir_function_inlining.cpp
+++ b/ir_function_inlining.cpp
@@ -411,7 +411,7 @@
param_iter.next();
}
- delete(parameters);
+ delete [] parameters;
if (retval)
return new ir_dereference_variable(retval);