summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-12-23 19:19:44 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-12-23 19:19:44 +0000
commit94f86ad4e098385f92971b62dd780a24ff5404c2 (patch)
treed6c9594181e04975ade3b9ed1ad6edabb2e0923c /llvm/lib/Transforms
parentaaec00aed5a8963ba6f421c9620332228352f4b0 (diff)
downloadbcm5719-llvm-94f86ad4e098385f92971b62dd780a24ff5404c2.tar.gz
bcm5719-llvm-94f86ad4e098385f92971b62dd780a24ff5404c2.zip
Function-import: Disable IRVerifier on lazy-loaded modules: the ODR TypeUniquing generates invalid debug info.
llvm-svn: 290442
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 1fa957d88bb..6dd95f8dcd5 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -698,14 +698,6 @@ Expected<bool> 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;
OpenPOWER on IntegriCloud