Skip to content

Commit

Permalink
conv:evictstatic: Add linkage to variable moved to global scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Sep 25, 2024
1 parent feb3a65 commit 37f6f2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/vast/Conversion/ToMem/EvictStaticLocals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ namespace vast::conv {

auto new_decl = rewriter.create< hl::VarDeclOp >(
op.getLoc(),
(parent_fn.getName() + "." + op.getSymName()).str(),
op.getType(),
(parent_fn.getName() + "." + op.getSymName()).str(),
op.getStorageClass(),
op.getThreadStorageClass()
op.getThreadStorageClass(),
std::optional(core::GlobalLinkageKind::InternalLinkage)
);

// Save current context informationinto the op to make sure the information stays valid
Expand Down

0 comments on commit 37f6f2d

Please sign in to comment.