<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylkk-PnDAMxT8NXKxFw78BDhy2W6201156TogBd0IyTZwZ7bevoRrNHnqrFAkltn_vvRDtzef40ydrgBg0wtXHSNoisIcFGRToRJbJAa-KYVPhEkE58PoXTlKOQO6mLBlIjsnuFIrgbxjugZjRSbORsQvupY93oFlI-JiX3hTRgJezsEs4MBg5pInJu6x6E4VIi9vQMXjpUBdyi6DEhDEBY8yq94BzAfABagOn6CZwd2hMfruSFS45xuCUjSAquFN1YmkR9enIrqz1d5h3AZmLakb-BD8_vQh0k1AR7sSrP4aFL3YXOZOr-hJp8wYtqOCTBP8SRuwbDOK-yM1Ym6EeVK6S0MKoUU0rmjwFO67M15jVr5JL1iJySReSRDbW3h6fl2vwu5psKcaE-zW0ddsP-TpiV6u-O5ftMLXDYFTXKl2fznPXV3XXN31ulUYbx6z9lrXf8_-XpLE6VbJOTdk3ddkUQ19r0w-dKsuybc5D1pxwU2SLnVP4sORhPJA6LVGKliLHZ_HvL0d8OGRii-MP_C2iLD7h9fko_fEk__ki88PmeHj8A66S_8Y>53589</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Request: A builtin to mark an object as invalid
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Would it be possible to get a builtin that marks an object as invalid until it is overwritten and make it IF if the object is used other than destruction, assignment or taking its address/ref.  I am naive on the compiler internals here, but this could allow for the safety of destructive moves without the changes to the object model around destruction ordering.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUUuPmzAQ_jVwGRXxzMLBh22rlfbaS882nsBsjJ3a40T77ztQRdlDJSSwZ74nJthP9TtkZ4EYDMI1pETGIXCABRk0mEyOyQOvmmHT8ZJAewjmA2cZJyB_044sZM_kdhZKEG4Y75GY0cuyFdgF99H7G9BZmPCBl92c0EKQu7hLeLCYOOaZKfii_SEKiRa_oWcIsqEv5BehEhPWRkypaN8iniuAd9AbeE03IfeHxhy2KznhJc8YvXYJRAV3VpNZVkR9PrJr58IdzruA4JI-I39COD-9COkmoRLciddwgIVf7C5yJ1V9ibQFiw50DFmCfwkj9i1GcV-VVnV26iZdMrFD9Qv_ZNkruld4fdYdjrL_23WZo1Mr8zUJRgqQZxFf2VQSWQ7O3R6vb9cYdrQcKSWRkY-hG8apXFXXn8a279v6RbedHua2t_18GkaDNXbzdCqdNuiSKobvxfCzJNXWrTx134x91_TVNHbGjtOLbppm6E9T0de4aXLVLlyFuJRRHR5MXpIMHSVOz-G_P4v44NdZqo3KoJ5XtOVhVx1e_wLnTOpV">