Skip to content

Commit 87ac170

Browse files
committed
Remove unnecessary check of line number
Apparently the debug info can still be useful even when the line number is invalid (i.e. function name). Curretly this seems to occur with callback in single line comprehensions.
1 parent f8c7b22 commit 87ac170

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/codegen.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8936,8 +8936,6 @@ static jl_llvm_functions_t
89368936
func = debuginfo->def; // this is inlined
89378937
struct jl_codeloc_t lineidx = jl_uncompress1_codeloc(debuginfo->codelocs, pc);
89388938
size_t i = lineidx.line;
8939-
if (i < 0) // pc out of range: broken debuginfo?
8940-
return false;
89418939
if (i == 0 && lineidx.to == 0) // no update
89428940
return false;
89438941
if (pc > 0 && (jl_value_t*)debuginfo->linetable != jl_nothing) {

0 commit comments

Comments
 (0)