summaryrefslogtreecommitdiff
path: root/gcc/tree-mudflap.c
diff options
context:
space:
mode:
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-16 21:25:43 +0000
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-16 21:25:43 +0000
commita38904360a9b5e258d5011e686ebf58e89399379 (patch)
tree0dcd35b54febea8f95ff11e647f37419d3e4eb94 /gcc/tree-mudflap.c
parent304f602de84a7f5c7abf948555b7582a0565e6e0 (diff)
downloadgcc-a38904360a9b5e258d5011e686ebf58e89399379.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84836 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r--gcc/tree-mudflap.c9
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)
{