Skip to content

Commit

Permalink
fix(ExecutionTrace): fixed unintentional override of currentOp in get… (
Browse files Browse the repository at this point in the history
#77)

Ok lets merge it for now
  • Loading branch information
alepping authored Jan 15, 2025
1 parent 542d8af commit ea13704
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nautilus/src/nautilus/tracing/ExecutionTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,11 @@ void ExecutionTrace::nextOperation() {
}

TraceOperation& ExecutionTrace::getCurrentOperation() {
auto& currentOp = getCurrentBlock().operations[currentOperationIndex];
while (currentOp.op == JMP) {
auto& nextBlock = std::get<BlockRef>(currentOp.input[0]);
while (getCurrentBlock().operations[currentOperationIndex].op == JMP) {
auto& nextBlock = std::get<BlockRef>(getCurrentBlock().operations[currentOperationIndex].input[0]);
setCurrentBlock(nextBlock.block);
currentOp = getCurrentBlock().operations[currentOperationIndex];
}
return currentOp;
return getCurrentBlock().operations[currentOperationIndex];
}

uint16_t ExecutionTrace::createBlock() {
Expand Down

0 comments on commit ea13704

Please sign in to comment.