Skip to content

Commit ad1f2d8

Browse files
authored
Fix bitcast arg (#1679)
* bitcast arg * Update compiler.jl
1 parent 07ebcd3 commit ad1f2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6619,7 +6619,7 @@ end
66196619
tape = callparams[end]
66206620
if TapeType <: EnzymeTapeToLoad
66216621
llty = from_tape_type(eltype(TapeType))
6622-
tape = bitcast!(builder, LLVM.PointerType(llty, LLVM.addrspace(value_type(tape))))
6622+
tape = bitcast!(builder, tape, LLVM.PointerType(llty, LLVM.addrspace(value_type(tape))))
66236623
tape = load!(builder, llty, tape)
66246624
API.SetMustCache!(tape)
66256625
callparams[end] = tape

0 commit comments

Comments
 (0)