diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-09 11:00:00 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-09 11:00:23 -0700 |
commit | 2f8b0435b0f9c4df8e19bbbd5df78729bfd25f09 (patch) | |
tree | f8a3f9b8ff443701978c00f8b3ed7baaeea3c2de /ir_function_inlining.cpp | |
parent | cfb3536f10dac343ad635be7f979b292c97eb1a3 (diff) |
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.
Diffstat (limited to 'ir_function_inlining.cpp')
-rw-r--r-- | ir_function_inlining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ir_function_inlining.cpp b/ir_function_inlining.cpp index 7ac74ca03b..7cc8a325ff 100644 --- a/ir_function_inlining.cpp +++ b/ir_function_inlining.cpp @@ -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); |