rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land.
================ Comment at: clang/lib/Sema/SemaDecl.cpp:13314 -/// Determines if a variable's alignment is dependent. -static bool hasDependentAlignment(VarDecl *VD) { - if (VD->getType()->isDependentType()) - return true; - for (auto *I : VD->specific_attrs<AlignedAttr>()) - if (I->isAlignmentDependent()) - return true; - return false; +bool Sema::hasDependentAlignment(const VarDecl *VD) { + return VD->getType()->isDependentType() || ---------------- It doesn't look like this has any particular relationship to Sema. Consider making this a member of `VarDecl` instead. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105380/new/ https://reviews.llvm.org/D105380 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits