[llvm] 4b0b105 - [FunctionImport] Fix returned PreservedAnalyses
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 09:42:27 PDT 2023
Author: Arthur Eubanks
Date: 2023-03-16T09:42:09-07:00
New Revision: 4b0b1052a5f729bfe962eb15fc5edd7a2da1d0d5
URL: https://github.com/llvm/llvm-project/commit/4b0b1052a5f729bfe962eb15fc5edd7a2da1d0d5
DIFF: https://github.com/llvm/llvm-project/commit/4b0b1052a5f729bfe962eb15fc5edd7a2da1d0d5.diff
LOG: [FunctionImport] Fix returned PreservedAnalyses
Added:
Modified:
llvm/lib/Transforms/IPO/FunctionImport.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 222b719c1b89..4875c18e1fac 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -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,
More information about the llvm-commits
mailing list