mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
[OCaml] Don't truncate constants over 32 bits in Llvm.const_int.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -695,7 +695,7 @@ CAMLprim value llvm_append_namedmd(LLVMModuleRef M, value Name, LLVMValueRef Val
|
||||
|
||||
/* lltype -> int -> llvalue */
|
||||
CAMLprim LLVMValueRef llvm_const_int(LLVMTypeRef IntTy, value N) {
|
||||
return LLVMConstInt(IntTy, (long long) Int_val(N), 1);
|
||||
return LLVMConstInt(IntTy, (long long) Long_val(N), 1);
|
||||
}
|
||||
|
||||
/* lltype -> Int64.t -> bool -> llvalue */
|
||||
|
Reference in New Issue
Block a user