File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ static void annotate_browser__draw_current_loop(struct ui_browser *browser)
153
153
unsigned int from , to , start_width = 2 ;
154
154
155
155
list_for_each_entry_from (pos , & notes -> src -> source , node ) {
156
- if (!pos -> ins || !ins__is_jump (pos -> ins ))
156
+ if (!pos -> ins || !ins__is_jump (pos -> ins ) ||
157
+ !disasm_line__has_offset (pos ))
157
158
continue ;
158
159
159
160
target = ab -> offsets [pos -> ops .target .offset ];
@@ -689,7 +690,8 @@ static void annotate_browser__mark_jump_targets(struct annotate_browser *browser
689
690
struct disasm_line * dl = browser -> offsets [offset ], * dlt ;
690
691
struct browser_disasm_line * bdlt ;
691
692
692
- if (!dl || !dl -> ins || !ins__is_jump (dl -> ins ))
693
+ if (!dl || !dl -> ins || !ins__is_jump (dl -> ins ) ||
694
+ !disasm_line__has_offset (dl ))
693
695
continue ;
694
696
695
697
if (dl -> ops .target .offset >= size ) {
You can’t perform that action at this time.
0 commit comments