Skip to content

Commit

Permalink
Merge pull request #601 from vprover/fix-lpocomparator-sharedptr-viol…
Browse files Browse the repository at this point in the history
…ation

Calling SharedPtr ctor with nullptr causes violation; call default ctor
  • Loading branch information
MichaelRawson authored Sep 15, 2024
2 parents 1d4a45a + 1c2d99c commit 752bd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/LPOComparator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class LPOComparator
BranchTag tag;
SmartPtr<Node> n;

explicit Branch(BranchTag t) : tag(t), n(nullptr) { ASS(t==BranchTag::T_GREATER || t==BranchTag::T_NOT_GREATER); }
explicit Branch(BranchTag t) : tag(t) { ASS(t==BranchTag::T_GREATER || t==BranchTag::T_NOT_GREATER); }
explicit Branch(TermList lhs, TermList rhs) : tag(BranchTag::T_UNKNOWN), n(new Node(lhs, rhs)) {}
};

Expand Down

0 comments on commit 752bd01

Please sign in to comment.