diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-13 18:21:53 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-13 18:21:53 +0100 |
| commit | a745bb8f42c5e96737595f44037009f93a1eb7c0 (patch) | |
| tree | 1d9cdd7279747cb2950689f7f81d94627919da40 /src/llvm_backend.cpp | |
| parent | da9870c77d539be7571c14cfb7176120b398ed84 (diff) | |
Add extra message to assert
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index c9eaadfda..4f832f8d9 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -6384,7 +6384,7 @@ LLVMValueRef lb_big_int_to_llvm(lbModule *m, Type *original_type, BigInt const * i64 sz = type_size_of(original_type); if (is_type_different_to_arch_endianness(original_type)) { - GB_ASSERT(sz == cast(i64)written); + GB_ASSERT_MSG(sz == cast(i64)written, "max_count: %tu, sz: %lld, written: %tu", max_count, sz, written); for (i64 i = 0; i < sz/2; i++) { u8 tmp = rop[i]; rop[i] = rop[sz-1-i]; @@ -6392,8 +6392,6 @@ LLVMValueRef lb_big_int_to_llvm(lbModule *m, Type *original_type, BigInt const * } } - - LLVMValueRef value = LLVMConstIntOfArbitraryPrecision(lb_type(m, original_type), cast(unsigned)((written+7)/8), cast(u64 *)rop); if (big_int_is_neg(a)) { value = LLVMConstNeg(value); |