================
@@ -91,6 +91,12 @@ void BTFTypeDerived::completeType(BTFDebug &BDebug) {
// The base type for PTR/CONST/VOLATILE could be void.
const DIType *ResolvedType = DTy->getBaseType();
+ if (ResolvedType) {
+ const auto *DerivedTy = dyn_cast<DIDerivedType>(ResolvedType);
+ if (DerivedTy && DerivedTy->getTag() == dwarf::DW_TAG_atomic_type)
----------------
eddyz87 wrote:
Nit: since this is done in two places, maybe extract it as a utility?
https://github.com/llvm/llvm-project/pull/107343
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits