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 a06cacb commit 49cd50dCopy full SHA for 49cd50d
lib/AST/DiagnosticEngine.cpp
@@ -502,12 +502,6 @@ void DiagnosticEngine::emitDiagnostic(const Diagnostic &diagnostic) {
502
// If a declaration was provided instead of a location, and that declaration
503
// has a location we can point to, use that location.
504
loc = decl->getLoc();
505
- // With an implicit parameter try to point to its type.
506
- if (loc.isInvalid() && isa<ParamDecl>(decl)) {
507
- if (auto Pat =
508
- cast<ParamDecl>(decl)->getParamParentPattern())
509
- loc = Pat->getLoc();
510
- }
511
512
if (loc.isInvalid()) {
513
// There is no location we can point to. Pretty-print the declaration
0 commit comments