Skip to content

Commit c67ad72

Browse files
committed
fix
1 parent 91be5a6 commit c67ad72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/llvmrules.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ end
719719
end
720720

721721
function post_genericmemcpy_memset(B, callv, _)
722-
elSize = get_memory_elsz(B, ev)
722+
elSize = get_memory_elsz(B, callv)
723723
elSize = LLVM.zext!(B, elSize, LLVM.IntType(8 * sizeof(Csize_t)))
724724
length = LLVM.mul!(B, len, elSize)
725725

@@ -1476,6 +1476,7 @@ end
14761476
function zero_array_grow!(B, _, args)
14771477
al = 0
14781478
anti, inc = args
1479+
i8 = LLVM.IntType(8)
14791480

14801481
idx = get_array_nrows(B, anti)
14811482
elsz = zext!(B, get_array_elsz(B, anti), value_type(idx))
@@ -1497,7 +1498,6 @@ end
14971498

14981499
shadowin = invert_pointer(gutils, origops[1], B)
14991500
ctx = LLVM.context(orig)
1500-
i8 = LLVM.IntType(8)
15011501

15021502

15031503
inc = new_from_original(gutils, origops[2])

0 commit comments

Comments
 (0)