Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for wrong linkage for export import vars
Browse files Browse the repository at this point in the history
ASDAlexander77 committed Nov 9, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 8d2d3c1 commit 42eb640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tsc/lib/TypeScript/MLIRGen.cpp
Original file line number Diff line number Diff line change
@@ -3160,6 +3160,10 @@ class MLIRGenImpl
// TODO: dso_local somehow linked with -fno-pic
//attrs.push_back({builder.getStringAttr("dso_local"), builder.getUnitAttr()});
}
else if (isExport || isImport)
{
linkage = LLVM::Linkage::External;
}

return linkage;
}

0 comments on commit 42eb640

Please sign in to comment.