<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59408>59408</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `UseInitArray` default doesn't match clang CLI default
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          keith
      </td>
    </tr>
</table>

<pre>
    Currently the `UseInitArray` [clang command line default](https://github.com/llvm/llvm-project/blob/bd570709c06a19637f3e8df47cb6f9a094fa6aa8/clang/include/clang/Driver/Options.td#L2970-L2972) is true, while the [`TargetOptions` default is `false`](https://github.com/llvm/llvm-project/blob/bd570709c06a19637f3e8df47cb6f9a094fa6aa8/llvm/include/llvm/Target/TargetOptions.h#L132). This caused some confusion in Swift where a `TargetOptions` is manually created, and this default was flipped.

I'm filing this wondering if we should flip this default, or if that would be too risky for other cases potentially relying on this today
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8k8Fu2zAMhp9GvhANFDmW7YMPbQMDBQrssO4BaIuKtcpSIMk18vaDnGTdgF522YWyJfIXP4rEGM3JEXWsemLVscAlTT5072TSVAxeXbrnJQRyyV4gTQRM8h-RXpxJjyHghUkOrHoaLboTjH6e0SmwxhEo0rjYxKojE82U0jmy8pGJnon-ZNK0DLvRz0z01n7cl4dz8D9pTEz0g_VDXlRV85q3I5e4b2VZ65IapQ_1OEjdIm8PGiViw0S_pcBEb9xoF0V_7ByD-aDARP_tnIx3cZcUE-WraGv-kK1gogUTIYWFmHiGdTKWrrDVE5P8DcOJ0i04A9_QcgyTXKONxCT_b6Q3nU_Q28Y1z98fd9opw-7LTLmDt8lEGHGJpCD6mWD0Ti_ReAfGwffV6ATrRIEA4St0E2FGt6C1FxgDYSKVS5ZfPWXpe2lWjKCtOZ9J7Rg_Mv54tS9M1DNoY407XSNW7xSF_Gs0rARx8otVW_BfkvkaH7JTmjDBunkNBMl7CCa-X0D7AD5NFGDESBHOPpFLZss1kL3kO7y7iiav8FKorlRt2WJB3V7WvCrrqimLqZMSWy3rRmquVNW0fDhUqEgL4q1SNRamE1yIveBNtlW70_WIxIkjVpqXUrEDpxmN3eW32flwKkyMC3VVe-BNYXEgG7eRE8LRCtshEyJPYOi2DhmWU2QHbk1M8VMlmWSp-2II74VXnqJjok4wYxonuE7m8-vL3aNYgu3-uUu3BCMT_QbwKwAA__86UGA7">