Pass FunctionInfoIndex by reference to WriteFunctionSummaryToFile (NFC)
[oota-llvm.git] / tools / gold / gold-plugin.cpp
index bb718f708ccbf24c54879925e1bd273561bb601c..062f746c8fcb609e5061aee236907eef92936803 100644 (file)
@@ -914,7 +914,7 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) {
     if (EC)
       message(LDPL_FATAL, "Unable to open %s.thinlto.bc for writing: %s",
               output_name.data(), EC.message().c_str());
-    WriteFunctionSummaryToFile(&CombinedIndex, OS);
+    WriteFunctionSummaryToFile(CombinedIndex, OS);
     OS.close();
 
     cleanup_hook();