Skip to content

Commit 1ce9dc0

Browse files
committed
Use isAnyPointerType()
1 parent 180213a commit 1ce9dc0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Sema/SemaExprObjC.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4455,14 +4455,12 @@ SemaObjC::CheckObjCConversion(SourceRange castRange, QualType castType,
44554455
if (exprACTC == ACTC_indirectRetainable &&
44564456
(castACTC == ACTC_voidPtr ||
44574457
(castACTC == ACTC_coreFoundation && SemaRef.isCast(CCK)) ||
4458-
(IsReinterpretCast && (effCastType->isPointerType() ||
4459-
effCastType->isObjCObjectPointerType()))))
4458+
(IsReinterpretCast && effCastType->isAnyPointerType())))
44604459
return ACR_okay;
44614460
if (castACTC == ACTC_indirectRetainable &&
44624461
(((exprACTC == ACTC_voidPtr || exprACTC == ACTC_coreFoundation) &&
44634462
SemaRef.isCast(CCK)) ||
4464-
(IsReinterpretCast && (castExprType->isPointerType() ||
4465-
castExprType->isObjCObjectPointerType()))))
4463+
(IsReinterpretCast && castExprType->isAnyPointerType())))
44664464
return ACR_okay;
44674465

44684466
switch (ARCCastChecker(Context, exprACTC, castACTC, false).Visit(castExpr)) {

0 commit comments

Comments
 (0)