aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ASTReaderDecl.cpp
diff options
context:
space:
mode:
authorThorsten Schütt <schuett@gmail.com>2020-12-23 16:56:00 +0100
committerThorsten Schütt <schuett@gmail.com>2021-01-04 22:58:26 +0100
commitefc82c4ad2bcb256a4f4c20238d08cd3afba4d2d (patch)
tree9967045d388f16ffead61a0cfd57c5043d0efab1 /clang/lib/Serialization/ASTReaderDecl.cpp
parentabbef2fd46d48a0d92d86f0c00fa2973f8ae2c85 (diff)
downloadllvm-efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.zip
llvm-efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.tar.gz
llvm-efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.tar.bz2
[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)
Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D93765
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTReaderDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp
index 6bfb9bd..a0f3a39 100644
--- a/clang/lib/Serialization/ASTReaderDecl.cpp
+++ b/clang/lib/Serialization/ASTReaderDecl.cpp
@@ -1412,7 +1412,7 @@ ASTDeclReader::RedeclarableResult ASTDeclReader::VisitVarDeclImpl(VarDecl *VD) {
RedeclarableResult Redecl = VisitRedeclarable(VD);
VisitDeclaratorDecl(VD);
- VD->VarDeclBits.SClass = (StorageClass)Record.readInt();
+ VD->VarDeclBits.SClass = Record.readInt();
VD->VarDeclBits.TSCSpec = Record.readInt();
VD->VarDeclBits.InitStyle = Record.readInt();
VD->VarDeclBits.ARCPseudoStrong = Record.readInt();
@@ -1435,7 +1435,8 @@ ASTDeclReader::RedeclarableResult ASTDeclReader::VisitVarDeclImpl(VarDecl *VD) {
VD->setCachedLinkage(VarLinkage);
// Reconstruct the one piece of the IdentifierNamespace that we need.
- if (VD->getStorageClass() == SC_Extern && VarLinkage != NoLinkage &&
+ if (VD->getStorageClass() == StorageClass::Extern &&
+ VarLinkage != NoLinkage &&
VD->getLexicalDeclContext()->isFunctionOrMethod())
VD->setLocalExternDecl();