[Sema][ObjC] Clean up possible null dereference.

It appears that the code is actually dead since unbridged-cast
placeholder types are created by calling CastOperation::complete and
ImplicitCastExprs are never passed to it.

Spotted by Vedant Kumar.

rdar://problem/31542226

llvm-svn: 302503
This commit is contained in:
Akira Hatanaka 2017-05-09 01:54:51 +00:00
parent 720d9b4111
commit 2cd7e8652c
1 changed files with 1 additions and 2 deletions

View File

@ -4241,8 +4241,7 @@ void Sema::diagnoseARCUnbridgedCast(Expr *e) {
castType = cast->getTypeAsWritten();
CCK = CCK_OtherCast;
} else {
castType = cast->getType();
CCK = CCK_ImplicitConversion;
llvm_unreachable("Unexpected ImplicitCastExpr");
}
ARCConversionTypeClass castACTC =