Fix (possible) MSVC miscompile in debug mode.

llvm-svn: 176748
This commit is contained in:
Michael J. Spencer 2013-03-09 01:41:27 +00:00
parent 2d224509af
commit 52fdb8bf13
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ void LayoutPass::buildFollowOnTable(MutableFile::DefinedAtomRange &range) {
// the root of the targetAtom to the root of the current chain
auto iter = _followOnRoots.find(targetAtom);
if (iter == _followOnRoots.end()) {
_followOnRoots[targetAtom] = _followOnRoots[ai];
auto tmp = _followOnRoots[ai];
_followOnRoots[targetAtom] = tmp;
} else {
// The followon is part of another chain
if (iter->second == targetAtom) {