r190094 - Fix regression from r190016.
Eli Friedman
eli.friedman at gmail.com
Thu Sep 5 13:13:32 PDT 2013
Author: efriedma
Date: Thu Sep 5 15:13:32 2013
New Revision: 190094
URL: http://llvm.org/viewvc/llvm-project?rev=190094&view=rev
Log:
Fix regression from r190016.
I don't have a reduced testcase yet.
Modified:
cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderDecl.cpp?rev=190094&r1=190093&r2=190094&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReaderDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Thu Sep 5 15:13:32 2013
@@ -2840,7 +2840,9 @@ void ASTDeclReader::UpdateDecl(Decl *D,
}
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;
}
}
More information about the cfe-commits
mailing list