mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 11:01:57 +00:00
Fix GetCallersForAllBaseFunctions found by romix
This commit is contained in:
parent
488f6cc962
commit
5164c4b2f6
@ -274,10 +274,11 @@ std::vector<Use> GetCallersForAllBaseFunctions(QueryDatabase* db,
|
||||
queue.pop();
|
||||
|
||||
AddRange(&callers, func.uses);
|
||||
if (def)
|
||||
EachWithGen<QueryFunc>(db->funcs, def->base, [&](QueryFunc& func1) {
|
||||
if (const QueryFunc::Def* def1 = func.AnyDef()) {
|
||||
EachWithGen<QueryFunc>(db->funcs, def1->base, [&](QueryFunc& func1) {
|
||||
queue.push(&func1);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return callers;
|
||||
|
Loading…
Reference in New Issue
Block a user