Return iterator from Instruction::eraseFromParent.
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 2 Apr 2015 00:03:07 +0000 (00:03 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Thu, 2 Apr 2015 00:03:07 +0000 (00:03 +0000)
commit525a9598d6c5c3b411981ad93fd2c9c898b3342f
treee08aa2cac9e7eb7bcb77531bdf5de74c2053437a
parent76a7f072ab55050265f6f71c678036f3fa35d91c
Return iterator from Instruction::eraseFromParent.

Summary:
This is necessary in order to make removal while using reverse iterators work.

(See http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/084122.html)

Updates to other eraseFromParent's to come in later patches.

Reviewers: chandlerc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8783

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233869 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/BasicBlock.h
include/llvm/IR/Instruction.h
lib/IR/Instruction.cpp