Fix regression from r190016.

I don't have a reduced testcase yet.

llvm-svn: 190094
This commit is contained in:
Eli Friedman 2013-09-05 20:13:32 +00:00
parent e6db76071c
commit 9a5928036d
1 changed files with 3 additions and 1 deletions

View File

@ -2840,7 +2840,9 @@ void ASTDeclReader::UpdateDecl(Decl *D, ModuleFile &ModuleFile,
}
case UPD_DECL_MARKED_USED: {
D->markUsed(Reader.getContext());
// FIXME: This doesn't send the right notifications if there are
// ASTMutationListeners other than an ASTWriter.
D->setIsUsed(true);
break;
}
}