diff options
author | Thorsten Schütt <schuett@gmail.com> | 2020-12-23 16:56:00 +0100 |
---|---|---|
committer | Thorsten Schütt <schuett@gmail.com> | 2021-01-04 22:58:26 +0100 |
commit | efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d (patch) | |
tree | 9967045d388f16ffead61a0cfd57c5043d0efab1 /clang/lib/Serialization/ASTReader.cpp | |
parent | abbef2fd46d48a0d92d86f0c00fa2973f8ae2c85 (diff) | |
download | llvm-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/ASTReader.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index b48b23c..165bb53 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -10622,8 +10622,8 @@ void ASTReader::diagnoseOdrViolations() { // class needs to be checked instead. const auto FirstStorage = FirstMethod->getStorageClass(); const auto SecondStorage = SecondMethod->getStorageClass(); - const bool FirstStatic = FirstStorage == SC_Static; - const bool SecondStatic = SecondStorage == SC_Static; + const bool FirstStatic = FirstStorage == StorageClass::Static; + const bool SecondStatic = SecondStorage == StorageClass::Static; if (FirstStatic != SecondStatic) { ODRDiagDeclError(FirstRecord, FirstModule, FirstMethod->getLocation(), FirstMethod->getSourceRange(), MethodStatic) |