aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/NodeImpl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-27 00:54:31 +0000
committerChris Lattner <sabre@nondot.org>2002-03-27 00:54:31 +0000
commitdd3fc184f531fbd86688de16b175f54ed7a853e7 (patch)
tree93d775b1a1a43e6e3caa24741f8a209922176f12 /lib/Analysis/DataStructure/NodeImpl.cpp
parentdf8af1ca89c02111ca96d256ea17635e3798226c (diff)
Fix long line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/NodeImpl.cpp')
-rw-r--r--lib/Analysis/DataStructure/NodeImpl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Analysis/DataStructure/NodeImpl.cpp b/lib/Analysis/DataStructure/NodeImpl.cpp
index 796b569ce4..30bc9d21df 100644
--- a/lib/Analysis/DataStructure/NodeImpl.cpp
+++ b/lib/Analysis/DataStructure/NodeImpl.cpp
@@ -311,9 +311,11 @@ PointerValSet FunctionDSGraph::cloneFunctionIntoSelf(const FunctionDSGraph &DSG,
Nodes.push_back(NodeMap[DSG.Nodes[i]] = DSG.Nodes[i]->clone());
// Clone all of the shadow nodes similarly...
- for (unsigned i = 0, e = DSG.ShadowNodes.size(); i != e; ++i)
- ShadowNodes.push_back(cast<ShadowDSNode>(NodeMap[DSG.ShadowNodes[i]] = DSG.ShadowNodes[i]->clone()));
-
+ for (unsigned i = 0, e = DSG.ShadowNodes.size(); i != e; ++i) {
+ ShadowDSNode *New = cast<ShadowDSNode>(DSG.ShadowNodes[i]->clone());
+ NodeMap[DSG.ShadowNodes[i]] = New;
+ ShadowNodes.push_back(New);
+ }
// Convert all of the links over in the nodes now that the map has been filled
// in all the way...