summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5c3280971c4f7742a85432f50b1edc3def74d7fc (patch)
tree6df94e687c95308ede1138951ec6fa5f0cf056e9 /llvm/lib/Analysis/DataStructure/NodeImpl.cpp
parentf8e2d060cc749997873e39879f916e5651e332e9 (diff)
downloadbcm5719-llvm-5c3280971c4f7742a85432f50b1edc3def74d7fc.tar.gz
bcm5719-llvm-5c3280971c4f7742a85432f50b1edc3def74d7fc.zip
Fix long line
llvm-svn: 1998
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/NodeImpl.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/NodeImpl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/DataStructure/NodeImpl.cpp b/llvm/lib/Analysis/DataStructure/NodeImpl.cpp
index 796b569ce4c..30bc9d21df2 100644
--- a/llvm/lib/Analysis/DataStructure/NodeImpl.cpp
+++ b/llvm/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...
OpenPOWER on IntegriCloud