mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] In ModuleFile::getCommentForDecl, we don't need to lookup comments attached to ParamDecls.
Fixes assertion hit in rdar://16720741. Swift SVN r16878
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)
|
||||
if (!VD || isa<ParamDecl>(D))
|
||||
return Nothing;
|
||||
|
||||
// Compute the USR.
|
||||
|
||||
Reference in New Issue
Block a user