This is an archive of the discontinued LLVM Phabricator instance.

Return iterator from Instruction::eraseFromParent.
ClosedPublic

Authored by dberlin on Apr 1 2015, 11:01 AM.

Details

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.

Diff Detail

Event Timeline

dberlin retitled this revision from to Return iterator from Instruction::eraseFromParent..
dberlin updated this object.
dberlin edited the test plan for this revision. (Show Details)
dberlin added a reviewer: chandlerc.
dberlin added a subscriber: Unknown Object (MLST).

Mark the function i moved to be inline (Darwin apparently does not care for some reason).

Also happy to move it into a .cpp file if we like, just trying to replicate the same single-module inlining availability
that existed before

chandlerc accepted this revision.Apr 1 2015, 4:28 PM
chandlerc edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Apr 1 2015, 4:28 PM
This revision was automatically updated to reflect the committed changes.