Skip to content

Commit ddc3cb3

Browse files
committedJun 3, 2017
Fixed #4458: missing location for to_unsafe call
1 parent d8eac43 commit ddc3cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/compiler/crystal/semantic/main_visitor.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ module Crystal
23782378
end
23792379
end
23802380

2381-
unsafe_call = Conversions.to_unsafe(node, Var.new("value"), self, actual_type, expected_type)
2381+
unsafe_call = Conversions.to_unsafe(node, Var.new("value").at(node), self, actual_type, expected_type)
23822382
if unsafe_call
23832383
node.extra = unsafe_call
23842384
return

1 commit comments

Comments
 (1)

RX14 commented on Jun 3, 2017

@RX14
Member

We seem to be playing whack-a-mole with these debug locations, would it be possible to verify that all nodes have a correct debug locations in crystal code, or somehow enumerate all the places where this has been missed?

Please sign in to comment.