Fix potential crash

This commit is contained in:
Jacob Dufault 2018-01-29 20:18:08 -08:00
parent e145f77996
commit a8b68d21d7

View File

@ -286,6 +286,8 @@ bool HasCallersOnSelfOrBaseOrDerived(QueryDatabase* db, QueryFunc& root) {
std::vector<QueryFuncRef> GetCallersForAllBaseFunctions(QueryDatabase* db,
QueryFunc& root) {
std::vector<QueryFuncRef> callers;
if (!root.def)
return callers;
std::queue<QueryFuncId> queue;
PushRange(&queue, root.def->base);