[MSSA] Fix a bug in MemorySSA's move ctor.

Not a correctness issue, but it would be nice if we didn't have to
recompute our block numbering (worst-case) every time we move MSSA.

llvm-svn: 277652
This commit is contained in:
George Burgess IV 2016-08-03 21:07:52 +00:00
parent 2aadad7243
commit 363da6f589

View File

@ -1236,6 +1236,8 @@ MemorySSA::MemorySSA(MemorySSA &&MSSA)
ValueToMemoryAccess(std::move(MSSA.ValueToMemoryAccess)),
PerBlockAccesses(std::move(MSSA.PerBlockAccesses)),
LiveOnEntryDef(std::move(MSSA.LiveOnEntryDef)),
BlockNumberingValid(std::move(MSSA.BlockNumberingValid)),
BlockNumbering(std::move(MSSA.BlockNumbering)),
Walker(std::move(MSSA.Walker)), NextID(MSSA.NextID) {
// Update the Walker MSSA pointer so it doesn't point to the moved-from MSSA
// object any more.