Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
wsmoses and github-actions[bot] authored Mar 23, 2024
1 parent 5a9c70c commit 3c9cdeb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ function enzyme!(job, mod, primalf, TT, mode, width, parallel, actualRetType, wr
rt = job.config.params.rt
shadow_init = job.config.params.shadowInit
ctx = context(mod)
dl = string(LLVM.datalayout(mod))
dl = string(LLVM.datalayout(mod))

tt = [TT.parameters[2:end]...,]

Expand Down Expand Up @@ -4481,7 +4481,11 @@ function GPUCompiler.codegen(output::Symbol, job::CompilerJob{<:EnzymeTarget};

if expectLen != length(parameters(f))
continue
throw(AssertionError("Wrong number of parameters $(string(f)) expectLen=$expectLen swiftself=$swiftself sret=$sret returnRoots=$returnRoots spec=$(mi.specTypes.parameters) retRem=$retRemoved parmsRem=$parmsRemoved"))
throw(
AssertionError(
"Wrong number of parameters $(string(f)) expectLen=$expectLen swiftself=$swiftself sret=$sret returnRoots=$returnRoots spec=$(mi.specTypes.parameters) retRem=$retRemoved parmsRem=$parmsRemoved",
),
)
end

jlargs = classify_arguments(
Expand Down

0 comments on commit 3c9cdeb

Please sign in to comment.