[all-commits] [llvm/llvm-project] d870a5: [SemaCXX] Set promotion type for enum if its type ...
Zequan Wu via All-commits
all-commits at lists.llvm.org
Thu Jul 21 11:23:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d870a575631d2cedab2ff237af8edd17916edc64
https://github.com/llvm/llvm-project/commit/d870a575631d2cedab2ff237af8edd17916edc64
Author: Zequan Wu <zequanwu at google.com>
Date: 2022-07-21 (Thu, 21 Jul 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDecl.cpp
M clang/test/CXX/conv/conv.prom/p4.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list