diff options
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-08-17 13:54:14 -0700 |
---|---|---|
committer | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-08-17 14:14:00 -0700 |
commit | 8de51375f12d91675a18d17f262276e65f43fbe0 (patch) | |
tree | d4b8b8fa1d420b19147a185b5955a1fc3fb00e42 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | aa41fe664ab203257e2336bd8f33f5dcc91b5101 (diff) | |
download | llvm-8de51375f12d91675a18d17f262276e65f43fbe0.zip llvm-8de51375f12d91675a18d17f262276e65f43fbe0.tar.gz llvm-8de51375f12d91675a18d17f262276e65f43fbe0.tar.bz2 |
[Clang] Tighten restrictions on enum out of range diagnostic to avoid constant initialization
The restrictions added in D131704 were not sufficient to avoid all non-constant
expression contexts. In particular constant initialization cases.
We need to check EvaluatingDecl to detect if the variable we are initializing is
constexpr or not.
At this point it looks like this is the remaining case affecting various projects
with this diagnostic.
Differential Revision: https://reviews.llvm.org/D131874
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
0 files changed, 0 insertions, 0 deletions