Skip to content

Commit

Permalink
Fix assert for [CGData] Outlined Hash Tree llvm#89792 (llvm#98383)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyulee-com authored and aaryanshukla committed Jul 14, 2024
1 parent 8c0f0a9 commit 8c443d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ void OutlinedHashTreeRecord::convertToStableData(
[&NodeIdMap](const HashNode *Current) {
size_t Index = NodeIdMap.size();
NodeIdMap[Current] = Index;
assert(Index = NodeIdMap.size() + 1 &&
"Expected size of NodeMap to increment by 1");
assert((Index + 1 == NodeIdMap.size()) &&
"Duplicate key in NodeIdMap: 'Current' should be unique.");
},
/*EdgeCallbackFn=*/nullptr, /*SortedWork=*/true);

Expand Down

0 comments on commit 8c443d9

Please sign in to comment.