================
@@ -101,6 +101,10 @@ class LifetimeAnnotatedOriginTypeCollector
} // namespace
bool OriginManager::hasOrigins(QualType QT, bool IntrinsicOnly) const {
+ // An `_Atomic(T)` wraps T transparently for lifetime purposes (the atomic
+ // holds the same value); see through it.
+ if (const auto *AT = QT->getAs<AtomicType>())
+ return hasOrigins(AT->getValueType(), IntrinsicOnly);
----------------
NeKon69 wrote:
Should this instead be put after the reference/pointer checks? I feel like that
would be much rarer that someone uses atomic than pointer/reference.
https://github.com/llvm/llvm-project/pull/204591
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits