mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rework r16878. Now we refuse to generate a USR for 'self' in destructors
Filed rdar://16734962 to investigate the real bug. Swift SVN r16881
This commit is contained in:
@@ -1140,7 +1140,7 @@ Optional<BriefAndRawComment> ModuleFile::getCommentForDecl(const Decl *D) {
|
||||
return Nothing;
|
||||
|
||||
auto *VD = dyn_cast<ValueDecl>(D);
|
||||
if (!VD || isa<ParamDecl>(D))
|
||||
if (!VD)
|
||||
return Nothing;
|
||||
|
||||
// Compute the USR.
|
||||
|
||||
Reference in New Issue
Block a user