[FunctionImport] Fix returned PreservedAnalyses

This commit is contained in:
Arthur Eubanks 2023-03-16 09:37:26 -07:00
parent c0cb758ebd
commit 4b0b1052a5

View File

@ -1435,7 +1435,7 @@ static bool doImportingForModule(Module &M) {
if (renameModuleForThinLTO(M, *Index, /*ClearDSOLocalOnDeclarations=*/false,
/*GlobalsToImport=*/nullptr)) {
errs() << "Error renaming module\n";
return false;
return true;
}
// Perform the import now.
@ -1450,10 +1450,10 @@ static bool doImportingForModule(Module &M) {
if (!Result) {
logAllUnhandledErrors(Result.takeError(), errs(),
"Error importing module: ");
return false;
return true;
}
return *Result;
return true;
}
PreservedAnalyses FunctionImportPass::run(Module &M,