diff options
author | Zequan Wu <zequanwu@google.com> | 2022-07-20 16:08:25 -0700 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2022-07-21 11:23:21 -0700 |
commit | d870a575631d2cedab2ff237af8edd17916edc64 (patch) | |
tree | 32e3cdc10e02f0daae46b10491683419e25b38c8 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | bb5dc2918f6010b0393a0b089166f668436f4275 (diff) | |
download | llvm-d870a575631d2cedab2ff237af8edd17916edc64.zip llvm-d870a575631d2cedab2ff237af8edd17916edc64.tar.gz llvm-d870a575631d2cedab2ff237af8edd17916edc64.tar.bz2 |
[SemaCXX] Set promotion type for enum if its type is promotable to integer type even if it has no definition.
EnumDecl's promotion type is set either to the parsed type or calculated type
after completing its definition. When it's bool type and has no definition,
its promotion type is bool which is not allowed by clang.
Fixes #56560.
Differential Revision: https://reviews.llvm.org/D130210
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions