[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
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2022-08-11 (Thu, 11 Aug 2022)
[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