1
0
Fork 0

suppress "potential null pointer dereference" warning

This commit is contained in:
jsteemann 2019-04-04 23:07:04 +02:00
parent 1b03991eec
commit 9d7f893511
1 changed files with 1 additions and 0 deletions

View File

@ -1056,6 +1056,7 @@ std::unique_ptr<aql::ExecutionBlock> IResearchViewNode::createBlock(
writableOutputRegisters->emplace(reg);
}
TRI_ASSERT(writableOutputRegisters->size() == 1 + numScoreRegisters);
TRI_ASSERT(writableOutputRegisters->begin() != writableOutputRegisters->end());
TRI_ASSERT(firstOutputRegister == *std::min_element(writableOutputRegisters->begin(),
writableOutputRegisters->end()));
aql::ExecutorInfos infos = createRegisterInfos(calcInputRegs(), std::move(writableOutputRegisters));