[PATCH] D78085: [AST] Fix recovery-expr crash on invalid aligned attr.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 03:14:43 PDT 2020
sammccall added inline comments.
================
Comment at: clang/lib/AST/ComputeDependence.cpp:74
for (const auto *I : D->specific_attrs<AlignedAttr>()) {
+ // FIXME: should we propagate the error bit?
if (I->isAlignmentDependent())
----------------
maybe just do this unless it causes regressions?
================
Comment at: clang/lib/Sema/SemaDecl.cpp:2434
for (auto *I : Old->specific_attrs<AlignedAttr>()) {
+ // FIXME: we should bail out if I is error dependent.
// FIXME: We have no way of representing inherited dependent alignments
----------------
I actually don't think we should add this FIXME.
Currently error dependence implies dependence. If we break this invariant, there are going to be hundreds of places that check for dependence and need to be updated. We haven't annotated them all with fixmes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78085/new/
https://reviews.llvm.org/D78085
More information about the cfe-commits
mailing list