Skip to content

Commit 9283b6c

Browse files
committed
Reinstate support for merging modules with non-const globals.
(cherry picked from commit d0ab30b)
1 parent f25d988 commit 9283b6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jitlayers.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,7 @@ void jl_merge_module(Module *dest, std::unique_ptr<Module> src)
954954
// continue;
955955
//}
956956
else {
957-
assert(dG->isDeclaration() || (dG->getInitializer() == sG->getInitializer() &&
958-
dG->isConstant() && sG->isConstant()));
957+
assert(dG->isDeclaration() || dG->getInitializer() == sG->getInitializer());
959958
dG->replaceAllUsesWith(sG);
960959
dG->eraseFromParent();
961960
}

0 commit comments

Comments
 (0)