Remove "ExportingModule" from ThinLTO Index (NFC)
[oota-llvm.git] / tools / llvm-link / llvm-link.cpp
index 9a373c25cc5c4a84128e16490f4a8953b1f318ec..39034aaf672c991b187e2eb833271a4e4176d671 100644 (file)
@@ -229,7 +229,7 @@ static bool linkFiles(const char *argv0, LLVMContext &Context, Linker &L,
     std::unique_ptr<FunctionInfoIndex> Index;
     if (!FunctionIndex.empty()) {
       ErrorOr<std::unique_ptr<FunctionInfoIndex>> IndexOrErr =
-          llvm::getFunctionIndexForFile(FunctionIndex, diagnosticHandler, &*M);
+          llvm::getFunctionIndexForFile(FunctionIndex, diagnosticHandler);
       std::error_code EC = IndexOrErr.getError();
       if (EC) {
         errs() << EC.message() << '\n';