mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-27 15:57:30 +00:00
libLTO: Assert if LTOCodeGenerator and LTOModule are from different contexts
llvm-svn: 221730
This commit is contained in:
parent
a372ecb2f1
commit
0da7d23ee5
@ -128,6 +128,9 @@ void LTOCodeGenerator::initializeLTOPasses() {
|
||||
}
|
||||
|
||||
bool LTOCodeGenerator::addModule(LTOModule *mod) {
|
||||
assert(&mod->getModule().getContext() == &Context &&
|
||||
"Expected module in same context");
|
||||
|
||||
bool ret = IRLinker.linkInModule(&mod->getModule());
|
||||
|
||||
const std::vector<const char*> &undefs = mod->getAsmUndefinedRefs();
|
||||
|
Loading…
x
Reference in New Issue
Block a user