From d9822ca9f81a019d479662d19e2834ec881dc438 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 23 Dec 2016 19:19:44 +0000 Subject: [PATCH] Function-import: Disable IRVerifier on lazy-loaded modules: the ODR TypeUniquing generates invalid debug info. llvm-svn: 290442 --- lib/Transforms/IPO/FunctionImport.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index 1fa957d88bb..6dd95f8dcd5 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/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;