diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-02-17 20:44:22 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-02-17 20:44:22 +0000 |
commit | 61d846051ae429fed1dff76cbb1db42f7b82bfdc (patch) | |
tree | 88f4c43f30e6db5ad0c695b137d92f6372f8f039 /gcc/stmt.c | |
parent | 277576eefcc91cb00fad847f48b153a234227b8a (diff) | |
download | gcc-61d846051ae429fed1dff76cbb1db42f7b82bfdc.zip gcc-61d846051ae429fed1dff76cbb1db42f7b82bfdc.tar.gz gcc-61d846051ae429fed1dff76cbb1db42f7b82bfdc.tar.bz2 |
stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt isn't set.
* stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
isn't set.
From-SVN: r32041
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -641,8 +641,14 @@ set_file_and_line_for_stmt (file, line) char *file; int line; { - emit_filename = file; - emit_lineno = line; + /* If we're outputting an inline function, and we add a line note, + there may be no CFUN->STMT information. So, there's no need to + update it. */ + if (cfun->stmt) + { + emit_filename = file; + emit_lineno = line; + } } /* Emit a no-op instruction. */ |