In AArch64PromoteConstant::appendAndTransferDominatedUses,
InsertPts[NewPt] invalidates IPI. Therefore, `InsertPts[NewPt] =
std::move(IPI->second)` is not legal.
This was caught by running make check with
http://reviews.llvm.org/D7931.
Differential D7988
[AArch64] fix an invalid-iterator-use bug. sanjoy on Mar 1 2015, 3:10 PM. Authored by
Details In AArch64PromoteConstant::appendAndTransferDominatedUses, This was caught by running make check with
Diff Detail
Event TimelineComment Actions Ow, that's a subtle bug. Fix LGTM. As a microoptimization we could erase IPI via the iterator after everything we moved everything. That would save a map lookup. |