aprantl added inline comments.
================ Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:3922 + return cast<llvm::DINode>(GVE); + return dyn_cast_or_null<llvm::DINode>(N); + } ---------------- if we don't expect anything but non-null DINodes to be in the cache, then this whole condition should be ``` return cast<llvm::DINode>(N); ``` That will assert if N is null. ================ Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:5508 + return; + else if (!(DI = getDeclarationOrDefinition( + AliaseeDecl.getCanonicalDecl().getDecl()))) ---------------- LLVM coding style says to remove the redundant `else` after a `return`. ================ Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:5518 + + // Record this DIE in the cache for nested declaration reference + ImportedDeclCache[GD.getCanonicalDecl().getDecl()].reset(ImportDI); ---------------- `.` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120989/new/ https://reviews.llvm.org/D120989 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits