Skip to content

Commit e276b12

Browse files
committed
Sema: Remove unreachable code from CSDiag
1 parent 345c6db commit e276b12

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7293,13 +7293,6 @@ bool FailureDiagnosis::diagnoseMemberFailures(
72937293
baseObjTy = baseTy->getWithoutSpecifierType();
72947294
}
72957295

7296-
if (baseTy->is<InOutType>()) {
7297-
auto diag = diagnose(baseExpr->getLoc(), diag::extraneous_address_of);
7298-
if (auto *IOE = dyn_cast<InOutExpr>(baseExpr->getSemanticsProvidingExpr()))
7299-
diag.fixItRemove(IOE->getStartLoc());
7300-
return true;
7301-
}
7302-
73037296
// If the base type is an IUO, look through it. Odds are, the code is not
73047297
// trying to find a member of it.
73057298
// FIXME: We need to rework this with IUOs out of the type system.

0 commit comments

Comments
 (0)