summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderDecl.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-23 16:46:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-23 16:46:34 +0000
commite4865d28364da404013c49f4518cd7ba051a6b08 (patch)
tree2f96797639ef8f77e57805ab80851f2cc692f6c9 /clang/lib/Serialization/ASTReaderDecl.cpp
parente7ae8af8966dce52669c348ce37240ae9a8d4ad1 (diff)
downloadbcm5719-llvm-e4865d28364da404013c49f4518cd7ba051a6b08.tar.gz
bcm5719-llvm-e4865d28364da404013c49f4518cd7ba051a6b08.zip
A decl never becomes unused. Make that explicit in the API.
llvm-svn: 193248
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTReaderDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp
index 0c885bc5792..d3937fcff05 100644
--- a/clang/lib/Serialization/ASTReaderDecl.cpp
+++ b/clang/lib/Serialization/ASTReaderDecl.cpp
@@ -386,7 +386,7 @@ void ASTDeclReader::VisitDecl(Decl *D) {
D->setAttrsImpl(Attrs, Reader.getContext());
}
D->setImplicit(Record[Idx++]);
- D->setIsUsed(Record[Idx++]);
+ D->Used = Record[Idx++];
D->setReferenced(Record[Idx++]);
D->setTopLevelDeclInObjCContainer(Record[Idx++]);
D->setAccess((AccessSpecifier)Record[Idx++]);
@@ -2989,7 +2989,7 @@ void ASTDeclReader::UpdateDecl(Decl *D, ModuleFile &ModuleFile,
case UPD_DECL_MARKED_USED: {
// FIXME: This doesn't send the right notifications if there are
// ASTMutationListeners other than an ASTWriter.
- D->setIsUsed(true);
+ D->Used = true;
break;
}
}
OpenPOWER on IntegriCloud