Skip to content

Commit d6167e7

Browse files
committed
Fix linker changes.
1 parent 751e32e commit d6167e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bbq/vm/linker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func LinkGlobals(
4949
globals := make([]Variable, len(program.Globals))
5050
indexedGlobals := activations.NewActivation[Variable](memoryGauge, nil)
5151

52-
var visitedLocations map[common.Location]struct{}
52+
visitedLocations := map[common.Location]struct{}{}
5353

5454
// NOTE: ensure both the context and the mapping are updated
5555

@@ -178,7 +178,7 @@ func linkImportedGlobal(
178178
if _, ok := visitedLocations[importLocation]; !ok {
179179
// add the imported program's sema type cache to the context's sema type cache
180180
// TODO: Maybe this is excessive, balance size and performance
181-
for typeID, semaType := range importedProgram.SemaTypeCache {
181+
for typeID, semaType := range importedProgram.SemaTypeCache { //nolint:maprange
182182
if _, ok := context.semaTypeCache[typeID]; ok {
183183
continue
184184
}

0 commit comments

Comments
 (0)