This is an archive of the discontinued LLVM Phabricator instance.

Fix a use-iterator-after-invalidate error
ClosedPublic

Authored by sanjoy on Feb 26 2015, 3:44 PM.

Details

Reviewers
chandlerc
sanjoy
Summary

As far as I can tell, AnalysysResult::getResultImpl reuses an iterator into a DenseMap after inserting elements into it. This change recomputes the iterator before the second use.

(caveat: I'm not familiar with this bit of code, so it possible that I'm misreading it)

Diff Detail

Event Timeline

sanjoy updated this revision to Diff 20800.Feb 26 2015, 3:44 PM
sanjoy retitled this revision from to Fix a use-iterator-after-invalidate error.
sanjoy updated this object.
sanjoy edited the test plan for this revision. (Show Details)
sanjoy added a reviewer: chandlerc.
sanjoy added a subscriber: Unknown Object (MLST).
sanjoy accepted this revision.Feb 26 2015, 6:22 PM
sanjoy added a reviewer: sanjoy.

Checked in without pre-commit review since it looks fairly obvious.

This revision is now accepted and ready to land.Feb 26 2015, 6:22 PM
sanjoy closed this revision.Feb 28 2015, 9:20 PM