Fix GOLD plugin build after r262976
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 9 Mar 2016 01:55:15 +0000 (01:55 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 9 Mar 2016 01:55:15 +0000 (01:55 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 262981

llvm/tools/gold/gold-plugin.cpp

index 6e0a6904dfb9310f1404bb8db4378588cea38663..678e6e6707da62b35e0bdfc4dda1216b02c3b5e3 100644 (file)
@@ -1090,7 +1090,7 @@ static void thinLTOBackendTask(claimed_file &F, const void *View,
   StringSet<> Dummy;
   if (linkInModule(Context, L, F, View, File, ApiFile, Dummy, Dummy))
     message(LDPL_FATAL, "Failed to rename module for ThinLTO");
-  if (renameModuleForThinLTO(*NewModule, &CombinedIndex))
+  if (renameModuleForThinLTO(*NewModule, CombinedIndex))
     message(LDPL_FATAL, "Failed to rename module for ThinLTO");
 
   CodeGen codeGen(std::move(NewModule), OS, TaskID, &CombinedIndex, File.name);