Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Oct 4, 2023
1 parent dd2c5d1 commit 06eb228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/allocfunc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const known_nonalloc_funcs = (
function is_alloc_function(name)
maybe_alloc = occursin(r"(ijl_|jl_).*", name)
if maybe_alloc
any(x->contains(str, x), known_nonalloc_funcs) && return false
any(x->contains(name, x), known_nonalloc_funcs) && return false
return true
end
return false
Expand Down Expand Up @@ -107,7 +107,7 @@ function rename_ir!(job, inst::LLVM.CallInst)
LLVM.API.LLVMSetOperand(inst, LLVM.API.LLVMGetNumOperands(inst)-1, lfn)
end
end

if isa(dest, ConstantExpr)
# Enzyme should be able to handle these
# detect calls to literal pointers and replace with function name, if possible
Expand Down

0 comments on commit 06eb228

Please sign in to comment.