I don't have commit permissions to the LLVM repo, so if you need this patch for your own patch, you can commit it yourself.
@nikic I realized that I forgot to update this comment with the new OCaml type signature in this patch. (An lltype should be added as the first argument.) I still have that pending patch where I rewrite the bindings to not use naked pointers, and when I rebased that patch after this one was merged, I fixed the comment here to have the right OCaml type. Because that patch rewrites the bindings, I had taken the opportunity to fix a bunch of "small" mistakes that I found in the bindings (e.g. wrong OCaml type signatures in C comments). Is it okay for me to be fixing these kinds of mistakes in that big patch? Or should I make another patch to fix these small mistakes?