================ @@ -3518,6 +3518,10 @@ llvm::DIType *CGDebugInfo::CreateTypeDefinition(const EnumType *Ty) { SmallVector<llvm::Metadata *, 16> Enumerators; ED = ED->getDefinition(); + + if (!ED) + return nullptr; + ---------------- Michael137 wrote:
Do you have an example/reproducer where this would get exercised? https://github.com/llvm/llvm-project/pull/97105 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits