diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index d91acfb5252..5cd37840c82 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1286,10 +1286,6 @@ void DSGraph::cloneInto(const DSGraph &G, DSNode *MappedNodeN = MappedNode.getNode(); H.mergeWith(DSNodeHandle(MappedNodeN, I->second.getOffset()+MappedNode.getOffset())); - - // If this is a global, add the global to this fn or merge if already exists - if (GlobalValue* GV = dyn_cast(I->first)) - ScalarMap[GV].mergeWith(H); } if (!(CloneFlags & DontCloneCallNodes)) {