Skip to content

Commit

Permalink
Reinstate support for merging modules with non-const globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Mar 29, 2021
1 parent 40267bb commit d0ab30b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,7 @@ void jl_merge_module(Module *dest, std::unique_ptr<Module> src)
// continue;
//}
else {
assert(dG->isDeclaration() || (dG->getInitializer() == sG->getInitializer() &&
dG->isConstant() && sG->isConstant()));
assert(dG->isDeclaration() || dG->getInitializer() == sG->getInitializer());
dG->replaceAllUsesWith(sG);
dG->eraseFromParent();
}
Expand Down

0 comments on commit d0ab30b

Please sign in to comment.