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

            Bug ID: 16787
           Summary: [OCaml] Several functions returns NULL and then
                    segfault if used
           Product: libraries
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Many functions binded in ocaml such as « build_extractvalue » for example, can
returns NULL if the value type doesn't match with a struct or an array.

Can you please raise a comprehensive exception [1] for debugging purpose
instead of let the program dramatically segfault ?

[1]: By comprehensive exception, I mean like: exception TypeMissmatch of
(lltype * lltype) (* the first is the expected type and the second the one
mismatching *)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to