Skip to content

Commit ce3492f

Browse files
author
Ary Borenszweig
committedMar 22, 2017
Fixed #4166: Inlinable function call in a function with debug info must have a !dbg location
1 parent e4d1f92 commit ce3492f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎src/compiler/crystal/codegen/codegen.cr

+1
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ module Crystal
373373
with_context(Context.new(context.fun, context.type)) do
374374
file_module = @program.file_module(node.filename)
375375
if vars = file_module.vars?
376+
set_current_debug_location Location.new(node.filename, 1, 1)
376377
alloca_vars vars, file_module
377378

378379
emit_vars_debug_info(vars) if @debug.variables?

0 commit comments

Comments
 (0)
Please sign in to comment.