Skip to content

Commit 8c443d9

Browse files
kyulee-comaaryanshukla
authored andcommitted
Fix assert for [CGData] Outlined Hash Tree llvm#89792 (llvm#98383)
1 parent 8c0f0a9 commit 8c443d9

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)