Skip to content

Commit e23f475

Browse files
committed
Fix assert for [CGData] Outlined Hash Tree llvm#89792
1 parent dad7442 commit e23f475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void OutlinedHashTreeRecord::convertToStableData(
119119
[&NodeIdMap](const HashNode *Current) {
120120
size_t Index = NodeIdMap.size();
121121
NodeIdMap[Current] = Index;
122-
assert(Index = NodeIdMap.size() + 1 &&
122+
assert(Index + 1 == NodeIdMap.size() &&
123123
"Expected size of NodeMap to increment by 1");
124124
},
125125
/*EdgeCallbackFn=*/nullptr, /*SortedWork=*/true);

0 commit comments

Comments
 (0)