OSDN Git Service

2004-07-16 Frank Ch. Eigler <fche@redhat.com>
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jul 2004 21:25:43 +0000 (21:25 +0000)
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jul 2004 21:25:43 +0000 (21:25 +0000)
* 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

gcc/ChangeLog
gcc/tree-mudflap.c

index 2647e88..9646260 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2004-07-16  Richard Henderson  <rth@redhat.com>
 
        * tree-def (WITH_SIZE_EXPR): New.
index adfb3c7..57586b5 100644 (file)
@@ -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)
     {