Skip to content

Commit 67f1d3a

Browse files
committed
[RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC.
llvm-svn: 256586
1 parent 967eb20 commit 67f1d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) {
11401140
}
11411141
cache[BDV] = base;
11421142
}
1143-
assert(cache.find(def) != cache.end());
1143+
assert(cache.count(def));
11441144
return cache[def];
11451145
}
11461146

0 commit comments

Comments
 (0)