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 510e7385884233b92b2a5c5d6c8f1f6e9d1a49bc..82d62ae2564271f12c389b4cc9439c3e3f5e31fb 100644 (file)
@@ -1,3 +1,8 @@
+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
index e25bbf9c44e7495fcedbbb4696145ad1ecf620f0..44d0e3043b5aacaff18ac3ceb166078f3a31ee6a 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;