diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 32711c7..1afe52e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13283,7 +13283,7 @@ dwarf2out_var_location (rtx loc_note) last_insn = loc_note; last_label = newloc->label; decl = NOTE_VAR_LOCATION_DECL (loc_note); - if (DECL_DEBUG_EXPR (decl) && DECL_DEBUG_EXPR_IS_FROM (decl) + if (DECL_DEBUG_EXPR_IS_FROM (decl) && DECL_DEBUG_EXPR (decl) && DECL_P (DECL_DEBUG_EXPR (decl))) decl = DECL_DEBUG_EXPR (decl); add_var_loc_to_decl (decl, newloc); |