diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 60df01b7..8b397c52 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -1776,22 +1776,12 @@ u32 addIteratorToTable(build_context &bc, return offset; } -static -bool hasLastByteHistoryOutEdge(const RoseGraph &g, RoseVertex v) { - for (const auto &e : out_edges_range(v, g)) { - if (g[e].history == ROSE_ROLE_HISTORY_LAST_BYTE) { - return true; - } - } - return false; -} - static u32 buildLastByteIter(const RoseGraph &g, build_context &bc) { vector lb_roles; for (auto v : vertices_range(g)) { - if (!hasLastByteHistoryOutEdge(g, v)) { + if (!hasLastByteHistorySucc(g, v)) { continue; } // Eager EOD reporters won't have state indices.