diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-31 21:58:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-31 21:58:50 +0000 |
commit | 83706a5a3a6f19451765b743c5a72b62f74eb71a (patch) | |
tree | ecb245cc649cf5e8d88796044d8b3b62ddd3578a /include/llvm/CodeGen/MachineBasicBlock.h | |
parent | 368c5da1986fce45a4594222a130df1c1c38fd79 (diff) |
MachineBasicBlock::remove should not change the iterator passed into it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 0fec6a2a2b..3aac0e4c65 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -110,7 +110,7 @@ public: // iterator erase(iterator I) { return Insts.erase(I); } iterator erase(iterator I, iterator E) { return Insts.erase(I, E); } - MachineInstr* remove(iterator &I) { return Insts.remove(I); } + MachineInstr *remove(MachineInstr *I) { return Insts.remove(I); } // Debugging methods. void dump() const; |