tree-mudflap.c (mf_file_function_line_tree): Correct typo that prevented descriptive...
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 16 Jul 2004 21:25:43 +0000 (21:25 +0000)
committerFrank Ch. Eigler <fche@gcc.gnu.org>
Fri, 16 Jul 2004 21:25:43 +0000 (21:25 +0000)
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

gcc/ChangeLog
gcc/tree-mudflap.c

index 2647e885fe958cc72b1911ae2a518635d5bf5a22..9646260eaa857bb8c5a07dcc9944e9f42a21cb7a 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 adfb3c7b771f1d5491f8483154675a15e50274ab..57586b57a0cb063b2acaacd5a156724f0d12df42 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)
     {