diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Analysis/LoopPass.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Analysis/LoopPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Analysis/LoopPass.cpp b/contrib/llvm-project/llvm/lib/Analysis/LoopPass.cpp index 294dfd9d41c1..61d3a270d653 100644 --- a/contrib/llvm-project/llvm/lib/Analysis/LoopPass.cpp +++ b/contrib/llvm-project/llvm/lib/Analysis/LoopPass.cpp @@ -114,7 +114,7 @@ void LPPassManager::markLoopAsDeleted(Loop &L) { // there. However, we have to be careful to not remove the back of the queue // as that is assumed to match the current loop. assert(LQ.back() == CurrentLoop && "Loop queue back isn't the current loop!"); - llvm::erase_value(LQ, &L); + llvm::erase(LQ, &L); if (&L == CurrentLoop) { CurrentLoopDeleted = true; |
