Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit c3c7b63

Browse files
committed
Fix issue #200: for inlines, recursively add the parent's ID
Since inlines flat id is the same for all calls, it's critical to include the ancestor's flat id as part of the flat id to avoid duplicates between different callers.
1 parent 6f8ca56 commit c3c7b63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

edu.rice.cs.hpcdata/src/edu/rice/cs/hpcdata/experiment/scope/visitors/FlatViewScopeVisitor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ private String getID( Scope scope ) {
429429
if (proc_scope.isAlien()) {
430430
var parent = scope.getParentScope();
431431
if (parent != null) {
432-
hash_id.append(SEPARATOR_ID);
433-
hash_id.append(parent.getFlatIndex());
432+
hash_id.append(getID(parent));
434433
}
435434
}
436435
} else if (scope instanceof ProcedureScope)

0 commit comments

Comments
 (0)