We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345c6db commit e276b12Copy full SHA for e276b12
lib/Sema/CSDiag.cpp
@@ -7293,13 +7293,6 @@ bool FailureDiagnosis::diagnoseMemberFailures(
7293
baseObjTy = baseTy->getWithoutSpecifierType();
7294
}
7295
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
-
7303
// If the base type is an IUO, look through it. Odds are, the code is not
7304
// trying to find a member of it.
7305
// FIXME: We need to rework this with IUOs out of the type system.
0 commit comments