diff options
author | 2005-08-11 15:14:53 -0700 | |
---|---|---|
committer | 2005-08-11 15:14:53 -0700 | |
commit | 71c2abb492618b099883dd2e625edace98bc9996 (patch) | |
tree | c967b1042e7447f4ad630c5c8f518583ccca5376 /lib.h | |
parent | Add 'undo_ptr_list_last()' helper function (diff) | |
download | sparse-71c2abb492618b099883dd2e625edace98bc9996.tar.gz sparse-71c2abb492618b099883dd2e625edace98bc9996.tar.bz2 sparse-71c2abb492618b099883dd2e625edace98bc9996.zip |
Make delete_last_instruction() use the new undo_ptr_list_last() fn
Not only are we always going to replace the last instruction with
something else, we can't afford to free the ptrlist, because the caller
is usually walking over it in a loop.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ static inline void free_instruction_list(struct instruction_list **head) static inline struct instruction * delete_last_instruction(struct instruction_list **head) { - return delete_ptr_list_last((struct ptr_list **)head); + return undo_ptr_list_last((struct ptr_list **)head); } static inline struct basic_block * delete_last_basic_block(struct basic_block_list **head) |