[all-commits] [llvm/llvm-project] 106774: [Clang] Fix for Tighten restrictions on enum out o...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu Aug 11 15:35:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 106774515b77d55edeab6e80555c410efc1f586a
      https://github.com/llvm/llvm-project/commit/106774515b77d55edeab6e80555c410efc1f586a
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp

  Log Message:
  -----------
  [Clang] Fix for Tighten restrictions on enum out of range diagnostic

Ok it looks like this is a bit more subtle, I broke the llvm-test-suite file
paq8p.cpp again. We need both conditions to be true Info.EvalMode ==
EvalInfo::EM_ConstantExpression && Info.InConstantContext. We need to be in a
context that requires a constant value but also in a constant expression context.

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




More information about the All-commits mailing list