mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fix: Actually erase remove the elements from AssumeHandles
Reviewers: sdmitriev, tejohnson Reviewed by: tejohnson Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68318 llvm-svn: 373494
This commit is contained in:
parent
1896a5775a
commit
322a122248
@ -130,7 +130,10 @@ void AssumptionCache::unregisterAssumption(CallInst *CI) {
|
||||
if (AVI != AffectedValues.end())
|
||||
AffectedValues.erase(AVI);
|
||||
}
|
||||
remove_if(AssumeHandles, [CI](WeakTrackingVH &VH) { return CI == VH; });
|
||||
|
||||
AssumeHandles.erase(
|
||||
remove_if(AssumeHandles, [CI](WeakTrackingVH &VH) { return CI == VH; }),
|
||||
AssumeHandles.end());
|
||||
}
|
||||
|
||||
void AssumptionCache::AffectedValueCallbackVH::deleted() {
|
||||
|
Loading…
Reference in New Issue
Block a user