[all-commits] [llvm/llvm-project] a95937: [clang] Make CXXDefaultArgExpr inherit dependence ...

Adam Czachorowski via All-commits all-commits at lists.llvm.org
Thu Jun 10 05:59:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a95937452f237fad10e6b7e43154c17c6b8476c4
      https://github.com/llvm/llvm-project/commit/a95937452f237fad10e6b7e43154c17c6b8476c4
  Author: Adam Czachorowski <adamcz at google.com>
  Date:   2021-06-10 (Thu, 10 Jun 2021)

  Changed paths:
    M clang/include/clang/AST/ComputeDependence.h
    M clang/include/clang/AST/ExprCXX.h
    M clang/lib/AST/ComputeDependence.cpp
    A clang/test/AST/ast-dump-default-arg-dep.cpp

  Log Message:
  -----------
  [clang] Make CXXDefaultArgExpr inherit dependence from the inner Expr

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.

Differential Revision: https://reviews.llvm.org/D103982




More information about the All-commits mailing list