Skip to content

Commit

Permalink
fix issue with looking up cell from globalMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
l-kent committed Dec 2, 2024
1 parent 470f4b2 commit 007424c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/analysis/RegionInjector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class RegionInjectorDSA(override val program: Program, DSATopDown: mutable.Map[P
// need to check if nodes match too

dsg.globalMapping.foreach { (range, field) =>
val cell = dsg.find(field.node.cells(0))
val cell = dsg.find(field.node.getCell(field.offset))
if (mergedRegions.contains(cell)) {
program.initialMemoryLookup(range.start) match {
case Some(section) =>
Expand Down

0 comments on commit 007424c

Please sign in to comment.