diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 1fa957d88bb2..6dd95f8dcd55 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -698,14 +698,6 @@ Expected FunctionImporter::importFunctions( } } -#ifndef NDEBUG - // Note: this can't be done after `renameModuleForThinLTO` as it leaves the - // module in a state that does not pass the verifier (for example aliases - // pointing to available_externally functions). - if (verifyModule(*SrcModule, &errs())) - report_fatal_error("Invalid lazy-loaded source module for importing"); -#endif - // Link in the specified functions. if (renameModuleForThinLTO(*SrcModule, Index, &GlobalsToImport)) return true;