diff options
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index adfb3c7..57586b5 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -195,10 +195,11 @@ mf_file_function_line_tree (location_t location) tree result; /* Add FILENAME[:LINENUMBER]. */ - if (xloc.file == NULL && current_function_decl != NULL_TREE) - xloc.file = DECL_SOURCE_FILE (current_function_decl); - if (xloc.file == NULL) - xloc.file = "<unknown file>"; + file = xloc.file; + if (file == NULL && current_function_decl != NULL_TREE) + file = DECL_SOURCE_FILE (current_function_decl); + if (file == NULL) + file = "<unknown file>"; if (xloc.line > 0) { |