This is an archive of the discontinued LLVM Phabricator instance.

[clang] Make CXXDefaultArgExpr inherit dependence from the inner Expr
ClosedPublic

Authored by adamcz on Jun 9 2021, 10:55 AM.

Details

Summary

Before this change, CXXDefaultArgExpr would always have
ExprDependence::None. This can lead to issues when, for example, the
inner expression is RecoveryExpr and yet containsErrors() on the default
expression is false.

Diff Detail

Event Timeline

adamcz requested review of this revision.Jun 9 2021, 10:55 AM
adamcz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2021, 10:55 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Jun 9 2021, 1:18 PM

Thanks!

This revision is now accepted and ready to land.Jun 9 2021, 1:18 PM
This revision was landed with ongoing or failed builds.Jun 10 2021, 5:59 AM
This revision was automatically updated to reflect the committed changes.