Pass handle to release_input_file
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 5 Feb 2015 20:56:14 +0000 (20:56 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 5 Feb 2015 20:56:14 +0000 (12:56 -0800)
* lto-plugin.c (claim_file_handler): Pass handle to
release_input_file.

From-SVN: r220461

lto-plugin/ChangeLog
lto-plugin/lto-plugin.c

index 510e738..82d62ae 100644 (file)
@@ -1,5 +1,10 @@
 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * lto-plugin.c (claim_file_handler): Pass handle to
+       release_input_file.
+
+2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
+
        * lto-plugin.c (claim_file_handler): Call release_input_file only
        if file is claimed.
 
index e25bbf9..44d0e30 100644 (file)
@@ -999,7 +999,7 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
   *claimed = 1;
 
   if (release_input_file)
-    release_input_file (file);
+    release_input_file (file->handle);
 
   goto cleanup;