diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2004-07-16 21:25:43 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@gcc.gnu.org> | 2004-07-16 21:25:43 +0000 |
commit | cc3704221d03fee7b4fea0918a06ee2e1ee866ff (patch) | |
tree | 0dcd35b54febea8f95ff11e647f37419d3e4eb94 /gcc/tree-mudflap.c | |
parent | b764adea38591ca510c0b9039fc08e3727fb764d (diff) | |
download | gcc-cc3704221d03fee7b4fea0918a06ee2e1ee866ff.tar.gz |
tree-mudflap.c (mf_file_function_line_tree): Correct typo that prevented descriptive __mf_check source location strings.
2004-07-16 Frank Ch. Eigler <fche@redhat.com>
* tree-mudflap.c (mf_file_function_line_tree): Correct typo
that prevented descriptive __mf_check source location strings.
From-SVN: r84836
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 adfb3c7b771..57586b57a0c 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) { |