This implements CIR handling for the case where an array of a destructed type is being initialized using an initializer list and therefore the address of the last successfully constructed element must be loaded from a temporary variable before the partial array destroy loop can begin. In classic codegen this shares its implementation with the general array ctor/dtor handling, but in CIR we have dedicated operations to abstract array ctors/dtors, so the implementation of the irregular partial destruction happens in a different place in codegen. Assisted-by: Cursor / claude-4.6-opus-high
40 KiB
40 KiB