Skip to content

Commit

Permalink
Fixed #4166: Inlinable function call in a function with debug info mu…
Browse files Browse the repository at this point in the history
…st have a !dbg location
  • Loading branch information
Ary Borenszweig committed Mar 22, 2017
1 parent e4d1f92 commit ce3492f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/crystal/codegen/codegen.cr
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ module Crystal
with_context(Context.new(context.fun, context.type)) do
file_module = @program.file_module(node.filename)
if vars = file_module.vars?
set_current_debug_location Location.new(node.filename, 1, 1)
alloca_vars vars, file_module

emit_vars_debug_info(vars) if @debug.variables?
Expand Down

0 comments on commit ce3492f

Please sign in to comment.