Skip to content

Commit 8b8841e

Browse files
committed
[analyzer] RetainRelease: Extend the workaround for VTCompressionSessionEncode{,MultiImage}Frame.
This is a new API that has the same ownership quirk as the old API. This is a tiny one-liner patch; changes in plists are entirely about line numbers.
1 parent 22e1df7 commit 8b8841e

File tree

4 files changed

+2582
-2564
lines changed

4 files changed

+2582
-2564
lines changed

clang/lib/Analysis/RetainSummaryManager.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
371371
return getPersistentSummary(RetEffect::MakeNoRet(),
372372
ScratchArgs,
373373
ArgEffect(DoNothing), ArgEffect(DoNothing));
374-
} else if (FName == "VTCompressionSessionEncodeFrame") {
375-
// The context argument passed to VTCompressionSessionEncodeFrame()
374+
} else if (FName == "VTCompressionSessionEncodeFrame" ||
375+
FName == "VTCompressionSessionEncodeMultiImageFrame") {
376+
// The context argument passed to VTCompressionSessionEncodeFrame() et.al.
376377
// is passed to the callback specified when creating the session
377378
// (e.g. with VTCompressionSessionCreate()) which can release it.
378379
// To account for this possibility, conservatively stop tracking

0 commit comments

Comments
 (0)