diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2022-03-14 11:02:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-14 11:02:59 +0000 |
| commit | a7adb2fb6e092e1f37791b1da633b01ff3ca489c (patch) | |
| tree | 6bff88f90b9b72dcc04ce1c02f86d981c2135fdd /src/llvm_backend_utility.cpp | |
| parent | 410b85b5c7f768543e03c9fc6f47f8c2efcd602b (diff) | |
| parent | f907516cbd0078b69996929d02742d0c1a48c226 (diff) | |
Merge branch 'master' into freestanding_amd64
Diffstat (limited to 'src/llvm_backend_utility.cpp')
| -rw-r--r-- | src/llvm_backend_utility.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend_utility.cpp b/src/llvm_backend_utility.cpp index fb52a9bd6..399d1632d 100644 --- a/src/llvm_backend_utility.cpp +++ b/src/llvm_backend_utility.cpp @@ -1387,7 +1387,7 @@ lbValue lb_slice_elem(lbProcedure *p, lbValue slice) { return lb_emit_struct_ev(p, slice, 0); } lbValue lb_slice_len(lbProcedure *p, lbValue slice) { - GB_ASSERT(is_type_slice(slice.type)); + GB_ASSERT(is_type_slice(slice.type) || is_type_relative_slice(slice.type)); return lb_emit_struct_ev(p, slice, 1); } lbValue lb_dynamic_array_elem(lbProcedure *p, lbValue da) { @@ -1793,7 +1793,7 @@ LLVMValueRef llvm_get_inline_asm(LLVMTypeRef func_type, String const &str, Strin return LLVMGetInlineAsm(func_type, cast(char *)str.text, cast(size_t)str.len, cast(char *)clobbers.text, cast(size_t)clobbers.len, - /*HasSideEffects*/true, /*IsAlignStack*/false, + has_side_effects, is_align_stack, dialect #if LLVM_VERSION_MAJOR >= 13 , /*CanThrow*/false |