This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Fix iterator usage after remove
ClosedPublic

Authored by aganea on Nov 4 2019, 8:13 AM.

Details

Summary

The test [OrcJITTests]CoreAPIsStandardTest.FailureInDependency previously failed on a Debug build on Windows with _ITERATOR_DEBUG_LEVEL == 2. This was caused by the collection being iterated (MII->second.pendingQueries()) to be modified in JITDylib::MaterializingInfo::removeQuery() (called by Q->detach()).

Diff Detail

Event Timeline

aganea created this revision.Nov 4 2019, 8:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2019, 8:13 AM
aganea edited the summary of this revision. (Show Details)Nov 4 2019, 8:18 AM
lhames accepted this revision.Nov 4 2019, 12:52 PM

LGTM. Thanks Alexandre!

This revision is now accepted and ready to land.Nov 4 2019, 12:52 PM
This revision was automatically updated to reflect the committed changes.