Skip to content

Commit b925ae0

Browse files
committed
Add handling for :inbounds in forward mode
1 parent a83c41d commit b925ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stage1/recurse_fwd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function transform_fwd!(ci, meth, nargs, sparams, N)
6565
return ZeroBundle{N}(sparams[stmt.args[1]])
6666
elseif isexpr(stmt, :foreigncall)
6767
return Expr(:call, error, "Attempted to AD a foreigncall. Missing rule?")
68-
elseif isexpr(stmt, :meta)
68+
elseif isexpr(stmt, :meta) || isexpr(stmt, :inbounds)
6969
# Can't trust that meta annotations are still valid in the AD'd
7070
# version.
7171
return nothing

0 commit comments

Comments
 (0)