OSDN Git Service

AArch64: avoid deleting the current iterator in a loop.
authorTim Northover <tnorthover@apple.com>
Fri, 8 Aug 2014 17:31:52 +0000 (17:31 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 8 Aug 2014 17:31:52 +0000 (17:31 +0000)
commit1968324efa6e47f5afae17a614625462faf5f125
tree7bc23f67d0a839a00b893b505be4ab6beba5e29e
parent5714db474a5ceb81542986da2472b930da62756c
AArch64: avoid deleting the current iterator in a loop.

std::map invalidates the iterator to any element that gets deleted, which means
we can't increment it correctly afterwards. This was causing Darwin test
failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215233 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp