[LVI] Avoid iterator invalidation in LazyValueInfoCache::threadEdge
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 20 Aug 2015 18:24:54 +0000 (18:24 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 20 Aug 2015 18:24:54 +0000 (18:24 +0000)
commit4d9e28f0824a2d59cecfe4e6ab7d9b01c7383e3a
treefc4fa6b584bb1b7b0bf4d894c88f30da5632d976
parent2c12b35c9597cc72aac00facd8a9f14262e26eb4
[LVI] Avoid iterator invalidation in LazyValueInfoCache::threadEdge

Do that by copying out the elements to another SmallPtrSet.
Follow up from r245309.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245590 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyValueInfo.cpp