diff options
| author | Gabor Greif <ggreif@gmail.com> | 2007-09-20 10:20:34 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2007-09-20 10:20:34 +0000 |
| commit | 4a46052d30f5f7752f18118a09cc597cc47701e4 (patch) | |
| tree | 3cf1f286e39248db553955e1dba16afe6d8ff817 | |
| parent | 95be037d67001deb3230ffc917a4a46c27989621 (diff) | |
| download | bcm5719-llvm-4a46052d30f5f7752f18118a09cc597cc47701e4.tar.gz bcm5719-llvm-4a46052d30f5f7752f18118a09cc597cc47701e4.zip | |
use typenames equivalent to
(u)intval, because latter are not
present in older caml/mlvalues.h
(e.g. 2004/07/07, 1.48.6.1)
Using this as a workaround for now,
until --without-ocaml works
or we settle on a better solution
llvm-svn: 42160
| -rw-r--r-- | llvm/bindings/ocaml/llvm/llvm_ocaml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/bindings/ocaml/llvm/llvm_ocaml.c b/llvm/bindings/ocaml/llvm/llvm_ocaml.c index c297a5f3e6f..80d7f737bab 100644 --- a/llvm/bindings/ocaml/llvm/llvm_ocaml.c +++ b/llvm/bindings/ocaml/llvm/llvm_ocaml.c @@ -273,9 +273,9 @@ CAMLprim value llvm_make_int_constant(value IntTy, value N, value SExt) { /* GCC warns if we use the ternary operator. */ unsigned long long N2; if (Bool_val(SExt)) - N2 = (intnat) Int_val(N); + N2 = (value) Int_val(N); else - N2 = (uintnat) Int_val(N); + N2 = (mlsize_t) Int_val(N); return (value) LLVMGetIntConstant((LLVMTypeRef) IntTy, N2, Bool_val(SExt)); } |

