From 71a84057cbed6090b31fcef9536a6331068612a5 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 1 Aug 2024 13:37:44 -0700 Subject: [PATCH] Find two more call sites for getFirstChildExists --- ConflictSet.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index e50f4e8..9d23348 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1882,9 +1882,7 @@ bool checkPointRead(Node *n, const std::span key, if (n->entryPresent) { return n->entry.pointVersion <= readVersion; } - int c = getChildGeq(n, 0); - assert(c >= 0); - n = getChildExists(n, c); + n = getFirstChildExists(n); goto downLeftSpine; } @@ -3669,9 +3667,7 @@ Node *firstGeqLogical(Node *n, const std::span key) { if (n->entryPresent) { return n; } - int c = getChildGeq(n, 0); - assert(c >= 0); - n = getChildExists(n, c); + n = getFirstChildExists(n); goto downLeftSpine; }