HomePhabricator

[CodeGen] Before entering the loop that copies a non-trivial array field

Description

[CodeGen] Before entering the loop that copies a non-trivial array field
of a non-trivial C struct, copy the preceding trivial fields that
haven't been copied.

This commit fixes a bug where the instructions used to copy the
preceding trivial fields were emitted inside the loop body.

rdar://problem/44185064

Details

Committed
ahatanakOct 1 2018, 6:00 PM
Branches
Unknown
Tags
Unknown