Skip to content

Commit

Permalink
small fix for lifetime.end
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed May 12, 2024
1 parent 8b19ddb commit d0340fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llvm_intrin/memory_addr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2228,7 +2228,7 @@ end
@generated function lifetime_start!(ptr::Ptr{T}, ::Val{L}) where {L,T}
ptyp = LLVM_TYPES[T]
decl = "declare void @llvm.lifetime.start(i64, ptr nocapture)"
instrs = "\ncall void @llvm.lifetime.start(i64 $L, ptr %0)\nret void"
instrs = "\ncall void @llvm.lifetime.start(i64 $L, ptr %ptr.0)\nret void"
llvmcall_expr(
decl,
instrs,
Expand All @@ -2244,7 +2244,7 @@ end
@generated function lifetime_end!(ptr::Ptr{T}, ::Val{L}) where {L,T}
ptyp = LLVM_TYPES[T]
decl = "declare void @llvm.lifetime.end(i64, ptr nocapture)"
instrs = "\ncall void @llvm.lifetime.end(i64 $L, ptr %0)\nret void"
instrs = "\ncall void @llvm.lifetime.end(i64 $L, ptr %ptr.0)\nret void"
llvmcall_expr(
decl,
instrs,
Expand Down

0 comments on commit d0340fd

Please sign in to comment.