(void)StoreCaptures;
SimpleCaptureTracker SCT(ReturnCaptures);
- PointerMayBeCaptured(V, &SCT);
+ PointerMayBeCaptured(V, &SCT, MaxUsesToExplore);
return SCT.Captured;
}
bool UseNewOBB = OBB == nullptr;
if (!DT)
- return PointerMayBeCaptured(V, ReturnCaptures, StoreCaptures);
+ return PointerMayBeCaptured(V, ReturnCaptures, StoreCaptures,
+ MaxUsesToExplore);
if (UseNewOBB)
OBB = new OrderedBasicBlock(I->getParent());
// with StoreCaptures.
CapturesBefore CB(ReturnCaptures, I, DT, IncludeI, OBB);
- PointerMayBeCaptured(V, &CB);
+ PointerMayBeCaptured(V, &CB, MaxUsesToExplore);
if (UseNewOBB)
delete OBB;