Fix bug in last checkin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7003 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-30 05:18:26 +00:00
parent fa45c7a938
commit 7b1ceaa40b

View File

@ -790,7 +790,7 @@ void DSGraph::cloneInto(const DSGraph &G, ScalarMapTy &OldValMap,
I->second.getOffset()+MappedNode.getOffset()));
// If this is a global, add the global to this fn or merge if already exists
if (isa<GlobalValue>(I->first) && &OldNodeMap != &ScalarMap)
if (isa<GlobalValue>(I->first))
ScalarMap[I->first].mergeWith(H);
}