SuccessChanges

Summary

  1. [Sema] Use the proper cast for a fixed bool enum. (details)
Commit fef26071240711e8f7305715b5f22cfc7ad04bfe by koraq
[Sema] Use the proper cast for a fixed bool enum.

When casting an enumerate with a fixed bool type the casting should use
an IntegralToBoolean instead of an IntegralCast as is required per Core
Issue 2338.

Fixes PR47055: Incorrect codegen for enum with bool underlying type

Differential Revision: https://reviews.llvm.org/D85612
The file was modifiedclang/lib/Sema/SemaCast.cpp
The file was addedclang/test/CodeGen/enum-bool.cpp
The file was modifiedclang/test/CXX/drs/dr23xx.cpp