Skip to content

Commit be6e6c8

Browse files
committed
Update spacing and indent to match runic
1 parent 58540a8 commit be6e6c8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/box.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Function to compute transport.
181181
- `U`: transport value
182182
"""
183183
function compute_transport(rho, params)
184-
(; delta, u0) = params
184+
(; delta, u0) = params
185185
U = u0 * (rho[2] - (delta * rho[1] + (1 - delta) * rho[3]))
186186
return U
187187
end

src/compiler.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5634,16 +5634,16 @@ end
56345634
)
56355635
)
56365636

5637-
size = Compiler.datatype_layoutsize(jTy)
5637+
size = Compiler.datatype_layoutsize(jTy)
56385638
if offset < size && isa(sz, LLVM.ConstantInt) && size - offset >= convert(Int, sz)
56395639
lim = convert(Int, sz)
56405640
md = to_fullmd(jTy, offset, lim)
56415641
@assert byref == GPUCompiler.BITS_REF ||
56425642
byref == GPUCompiler.MUT_REF
56435643
metadata(inst)["enzyme_truetype"] = md
5644-
elseif byref == GPUCompiler.BITS_VALUE && jTy <: Ptr && eltype(jTy) == Any
5645-
# TODO generalize this
5646-
md = to_fullmd(jTy, 0, sizeof(Ptr{Cvoid}))
5644+
elseif byref == GPUCompiler.BITS_VALUE && jTy <: Ptr && eltype(jTy) == Any
5645+
# TODO generalize this
5646+
md = to_fullmd(jTy, 0, sizeof(Ptr{Cvoid}))
56475647
metadata(inst)["enzyme_truetype"] = md
56485648
end
56495649
end

0 commit comments

Comments
 (0)