1
0
Fork 0

Fix register planning

This commit is contained in:
Markus Pfeiffer 2019-09-17 14:00:05 +01:00
parent a6160272c1
commit 75c640a131
1 changed files with 6 additions and 0 deletions

View File

@ -1095,6 +1095,12 @@ void ExecutionNode::RegisterPlan::after(ExecutionNode* en) {
}
case ExecutionNode::SUBQUERY_END: {
nrRegsHere[depth]++;
nrRegs[depth]++;
auto ep = ExecutionNode::castTo<SubqueryEndNode const*>(en);
TRI_ASSERT(ep != nullptr);
varInfo.emplace(ep->outVariable()->id, VarInfo(depth, totalNrRegs));
totalNrRegs++;
break;
}