This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Fixed hlfir.assign codegen for polymorphic LHS.
ClosedPublic

Authored by vzakhari on Apr 27 2023, 4:28 PM.

Details

Summary

The RHS cannot be casted to the LHS type, when LHS is polymorphic.
With this change we will use the RHS type for emboxing with special
hadling for i1 type.

I created https://github.com/llvm/llvm-project/issues/62419 for the
AllocaOp generated during HLFIRtoFir conversion.

Diff Detail

Event Timeline

vzakhari created this revision.Apr 27 2023, 4:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 4:28 PM
vzakhari requested review of this revision.Apr 27 2023, 4:28 PM
jeanPerier accepted this revision.Apr 28 2023, 12:00 AM

Oups, makes sense, thanks!

This revision is now accepted and ready to land.Apr 28 2023, 12:00 AM
This revision was landed with ongoing or failed builds.Apr 28 2023, 9:10 AM
This revision was automatically updated to reflect the committed changes.