diff --git a/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp b/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp index 996a57fd5e713..473d69e011e9a 100644 --- a/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp +++ b/llvm/lib/CodeGenData/OutlinedHashTreeRecord.cpp @@ -119,7 +119,7 @@ void OutlinedHashTreeRecord::convertToStableData( [&NodeIdMap](const HashNode *Current) { size_t Index = NodeIdMap.size(); NodeIdMap[Current] = Index; - assert(Index = NodeIdMap.size() + 1 && + assert(Index + 1 == NodeIdMap.size() && "Expected size of NodeMap to increment by 1"); }, /*EdgeCallbackFn=*/nullptr, /*SortedWork=*/true);