1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Fix a crash analyzing MultiSource/Benchmarks/MallocBench/gs

llvm-svn: 21245
This commit is contained in:
Chris Lattner 2005-04-12 03:59:27 +00:00
parent cfc7093ca6
commit f8d9224d8c

View File

@ -119,10 +119,9 @@ DSNode::DSNode(const Type *T, DSGraph *G)
// DSNode copy constructor... do not copy over the referrers list!
DSNode::DSNode(const DSNode &N, DSGraph *G, bool NullLinks)
: NumReferrers(0), Size(N.Size), ParentGraph(G),
Ty(N.Ty), NodeType(N.NodeType) {
Ty(N.Ty), Globals(N.Globals), NodeType(N.NodeType) {
if (!NullLinks) {
Links = N.Links;
Globals = N.Globals;
} else
Links.resize(N.Links.size()); // Create the appropriate number of null links
G->addNode(this);