<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi again!<br>
    <br>
    I don't know if I should send patches for review to llvmdev or
    llvmcommits so I forward my original message sent to llvmdev.<br>
    <br>
    Thanks,<br>
    Ivan<br>
    <br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
          <td>[LLVMdev] [PATCH] Remove instruction within a bundle</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Sun, 03 Jun 2012 17:17:47 +0200</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td>Ivan Llopard <a class="moz-txt-link-rfc2396E" href="mailto:ivanllopard@gmail.com"><ivanllopard@gmail.com></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
          <td>LLVM Developers Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:llvmdev@cs.uiuc.edu"><llvmdev@cs.uiuc.edu></a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>Hi,

I've raised an assertion when I tried to remove an instruction within a 
bundle by calling eraseFromParent(). It seems that in order to erase the 
MI, a bundle iterator is created but it's forbidden if the MI is not the 
bundle's header. The attached patch fix it.
As a test case, call eraseFromParent() on a machine instruction with its 
isInsideBundle flag activated.

Ivan


</pre>
  </body>
</html>