mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Function-import: Disable IRVerifier on lazy-loaded modules: the ODR TypeUniquing generates invalid debug info.
llvm-svn: 290442
This commit is contained in:
parent
7892525efb
commit
d9822ca9f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user