Skip to content

Commit 80a50d1

Browse files
committed
Fix some broken capture-by tests.
1 parent 352d342 commit 80a50d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/CheckExprLifetime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ static AnalysisResult analyzePathForGSLPointer(const IndirectLocalPath &Path,
12031203
if (FD &&
12041204
((FD->getReturnType()->isReferenceType() &&
12051205
isRecordWithAttr<OwnerAttr>(FD->getReturnType()->getPointeeType())) ||
1206-
isRecordWithAttr<PointerAttr>(FD->getReturnType())))
1206+
isPointerLikeType(FD->getReturnType())))
12071207
return Report;
12081208

12091209
return Abandon;

0 commit comments

Comments
 (0)