Skip to content

Commit c4cda76

Browse files
authored
Pass optimize kwarg from code_llvm to CompilerConfig. (#682)
1 parent ade4485 commit c4cda76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ See also: [`@device_code_llvm`](@ref), `InteractiveUtils.code_llvm`
186186
function code_llvm(io::IO, @nospecialize(job::CompilerJob); optimize::Bool=true, raw::Bool=false,
187187
debuginfo::Symbol=:default, dump_module::Bool=false, kwargs...)
188188
# NOTE: jl_dump_function_ir supports stripping metadata, so don't do it in the driver
189-
config = CompilerConfig(job.config; validate=false, strip=false)
189+
config = CompilerConfig(job.config; validate=false, strip=false, optimize)
190190
str = JuliaContext() do ctx
191191
ir, meta = compile(:llvm, CompilerJob(job; config))
192192
ts_mod = ThreadSafeModule(ir)

0 commit comments

Comments
 (0)