yonghong-song marked an inline comment as done. yonghong-song added inline comments.
================ Comment at: clang/lib/CodeGen/CGExpr.cpp:3431 - const auto *RecT = dyn_cast<RecordType>(ElaborateT->desugar().getTypePtr()); - if (!RecT) - return false; - - return RecT->getDecl()->hasAttr<BPFPreserveAccessIndexAttr>(); + const auto *PointeeT = PtrT->getPointeeType().getTypePtr() + ->getUnqualifiedDesugaredType(); ---------------- aaron.ballman wrote: > You can drop the `getTypePtr()` here and just use the magic `->` overload. Thanks! This indeed better: ``` + const auto *PointeeT = PtrT->getPointeeType() + ->getUnqualifiedDesugaredType(); ``` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D70257/new/ https://reviews.llvm.org/D70257 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits