Pass FunctionInfoIndex by reference to WriteFunctionSummaryToFile (NFC)
[oota-llvm.git] / tools / llvm-lto / llvm-lto.cpp
index 29d613f8cd2ce7b0068026197e04897ba3f5b480..b35384a0b35a79a172167e5aa8b6953da42af0ed 100644 (file)
@@ -208,7 +208,7 @@ static int createCombinedFunctionIndex(StringRef Command) {
            << ".thinlto.bc': " << EC.message() << "\n";
     return 1;
   }
-  WriteFunctionSummaryToFile(&CombinedIndex, OS);
+  WriteFunctionSummaryToFile(CombinedIndex, OS);
   OS.close();
   return 0;
 }