Skip to content

fix Tree initialization#25

Open
GGAutomaton wants to merge 1 commit intoARISTODE:llvm-12from
GGAutomaton:fix/uninitialized-Tree-member
Open

fix Tree initialization#25
GGAutomaton wants to merge 1 commit intoARISTODE:llvm-12from
GGAutomaton:fix/uninitialized-Tree-member

Conversation

@GGAutomaton
Copy link

Initializes the Tree::_size member to 0.

This fixes a bug where an uninitialized _size would cause size checks in connectInTrees and connectOutTrees to fail, preventing the trees from connecting.

void pdg::ProgramDependencyGraph::connectInTrees(Tree *src_tree, Tree *dstTree, EdgeType edgeTy)
{
if (src_tree->size() != dstTree->size())
return;

Note: This bug likely affects other active branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant