[clang] [clang-tools-extra] [clang] Refactor `clang::Linkage` (PR #71049)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 2 06:32:56 PDT 2023
================
@@ -1996,7 +1996,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
TypeBits.Dependence = static_cast<unsigned>(Dependence);
TypeBits.CacheValid = false;
TypeBits.CachedLocalOrUnnamed = false;
- TypeBits.CachedLinkage = NoLinkage;
+ TypeBits.CachedLinkage = llvm::to_underlying(Linkage::Invalid);
----------------
Endilll wrote:
CC @AaronBallman This passes Clang tests with all those `llvm_unreachable` around, so I'm rather confident about this. Note that I removed `NFC` tag from the title.
https://github.com/llvm/llvm-project/pull/71049
More information about the cfe-commits
mailing list