[all-commits] [llvm/llvm-project] bd4662: [AST] Enhance the const expression evaluator to su...

Haojian Wu via All-commits all-commits at lists.llvm.org
Wed Nov 18 06:49:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd4662cd3f3743e08699e6bab976d9e7b163ece0
      https://github.com/llvm/llvm-project/commit/bd4662cd3f3743e08699e6bab976d9e7b163ece0
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-11-18 (Wed, 18 Nov 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    A clang/test/SemaCXX/constexpr-function-recovery-crash.cpp
    M clang/test/SemaCXX/enable_if.cpp
    M clang/test/SemaCXX/invalid-constructor-init.cpp
    M clang/test/SemaCXX/recovery-expr-type.cpp

  Log Message:
  -----------
  [AST] Enhance the const expression evaluator to support error-dependent exprs.

Fix a crash when evaluating a constexpr function which contains
recovery-exprs. https://bugs.llvm.org/show_bug.cgi?id=46837

Would be nice to have constant expression evaluator support general template
value-dependent expressions, but it requires more work.

This patch is a good start I think, to handle the error-only
value-dependent expressions.

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




More information about the All-commits mailing list