[LLVMbugs] [Bug 16190] New: C and OCaml interfaces miss ConstantDataSequential in value classifiers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 31 13:34:34 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16190

            Bug ID: 16190
           Summary: C and OCaml interfaces miss ConstantDataSequential in
                    value classifiers
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: David.Monniaux at imag.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10605
  --> http://llvm.org/bugs/attachment.cgi?id=10605&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130531/57cf0e66/attachment.html>


More information about the llvm-bugs mailing list