Skip to content

Commit a230d40

Browse files
committed
simplify some code to eliminate unnecessary tests, NFC.
1 parent 5957a92 commit a230d40

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -427,15 +427,7 @@ ConcreteDeclRef constraints::resolveLocatorToDecl(
427427

428428
break;
429429
}
430-
431-
// Otherwise, do the best we can with the declaration we found.
432-
// FIXME: Deal with the other interesting cases here, e.g.,
433-
// subscript declarations.
434-
if (isa<FuncDecl>(declRef.getDecl()) ||
435-
isa<ConstructorDecl>(declRef.getDecl()))
436-
return declRef;
437-
438-
return ConcreteDeclRef();
430+
return declRef;
439431
}
440432

441433
/// Emit a note referring to the target of a diagnostic, e.g., the function

0 commit comments

Comments
 (0)