<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 --- - C and OCaml interfaces miss ConstantDataSequential in value classifiers"
   href="http://llvm.org/bugs/show_bug.cgi?id=16190">16190</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>C and OCaml interfaces miss ConstantDataSequential in value classifiers
          </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>Linux
          </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>Core LLVM classes
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>David.Monniaux@imag.fr
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>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=10605" name="attach_10605" title="patch over LLVM-3.2, also correct for 2013-05-31-SVN">attachment 10605</a> <a href="attachment.cgi?id=10605&action=edit" title="patch over LLVM-3.2, also correct for 2013-05-31-SVN">[details]</a></span>
patch over LLVM-3.2, also correct for 2013-05-31-SVN

llvm-c/Core.h has a family of LLVMIsAXXX functions, which were not updated when
ConstantDataSequential and subclasses were added. Thus, there are no functions
to check for membership in ConstantDataSequential, ConstantDataArray and
ConstantDataVector.

The OCaml interface consequently does not know about these in ValueKind.t, and
thus classify_value fails (with an exception) when asked to classify any value
from a subclass of ConstantDataSequential.

Solution: add the missing functions and cases in classify_value. See attached
patch.</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>