Skip to content

Commit d9d977f

Browse files
authored
Fix assert for [CGData] Outlined Hash Tree #89792 (#98383)
1 parent 2cec041 commit d9d977f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ void OutlinedHashTreeRecord::convertToStableData(
119119
[&NodeIdMap](const HashNode *Current) {
120120
size_t Index = NodeIdMap.size();
121121
NodeIdMap[Current] = Index;
122-
assert(Index = NodeIdMap.size() + 1 &&
123-
"Expected size of NodeMap to increment by 1");
122+
assert((Index + 1 == NodeIdMap.size()) &&
123+
"Duplicate key in NodeIdMap: 'Current' should be unique.");
124124
},
125125
/*EdgeCallbackFn=*/nullptr, /*SortedWork=*/true);
126126

0 commit comments

Comments
 (0)