When casting an enumerate with a fixed bool type the casting should use an IntegralToBoolean instead of an IntegralCast.
Fixes PR47055: Incorrect codegen for enum with bool underlying type
Differential D85612
[Sema] Use proper integral cast for an enumerate with a fixed bool type Mordante on Aug 9 2020, 9:19 AM. Authored by
Details When casting an enumerate with a fixed bool type the casting should use an IntegralToBoolean instead of an IntegralCast. Fixes PR47055: Incorrect codegen for enum with bool underlying type
Diff Detail
Event Timeline
|
Some general guidance for writing IR testcases: