OSDN Git Service

[JITLink] Fix edge removal iterator invalidation.
authorLang Hames <lhames@gmail.com>
Wed, 22 Apr 2020 17:18:44 +0000 (10:18 -0700)
committerLang Hames <lhames@gmail.com>
Wed, 22 Apr 2020 21:16:46 +0000 (14:16 -0700)
commit3ceea67c091d556ec672e65ec4e9d72997e76807
tree1a368fe690fc86eb5abe68e5be99adbf78630251
parentfedd32e2fa3600ea795b7acb715ddf8d89d7123a
[JITLink] Fix edge removal iterator invalidation.

This patch changes Block::removeEdge to return a valid iterator to the new next
element, and uses this to update the edge removal algorithm in
LinkGraph::splitBlock.
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
llvm/lib/ExecutionEngine/JITLink/JITLink.cpp