Skip to content

Commit

Permalink
Copy global variable linkages when moving functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanvdc committed Apr 10, 2019
1 parent 4671132 commit 49124a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class FunctionMover final : public ValueMaterializer
GlobalVariable *newGV = new GlobalVariable(*destModule,
GV->getType()->getElementType(),
GV->isConstant(),
GlobalVariable::ExternalLinkage,
GV->getLinkage(),
NULL,
GV->getName(),
NULL,
Expand Down

0 comments on commit 49124a1

Please sign in to comment.