<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Calls to @llvm.annotation.i32 not being removed before code generation"
   href="http://llvm.org/bugs/show_bug.cgi?id=15767">15767</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calls to @llvm.annotation.i32 not being removed before code generation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>khilan.gudka@cl.cam.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>csdavec@swan.ac.uk, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10359" name="attach_10359" title="Test case">attachment 10359</a> <a href="attachment.cgi?id=10359&action=edit" title="Test case">[details]</a></span>
Test case

Hi

This bug is similar to #15253 (<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Calls to @llvm.ptr.annotation not being removed before code generation"
   href="show_bug.cgi?id=15253">http://llvm.org/bugs/show_bug.cgi?id=15253</a>).

Annotations added using the clang builtin __builtin_annotation get turned into
calls to the intrinsic @llvm.annotation.i32. However, these intrinsic calls do
not seem to be removed before code generation because the following fatal error
occurs in the backend:

"fatal error: error in backend: Cannot select: intrinsic %llvm.annotation"

Cheers</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>