[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:
Argyrios Kyrtzidis
2014-04-26 07:21:37 +00:00
parent cd8c2a47d4
commit 936bf6238f

View File

@@ -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.