Skip to content

Commit 3972215

Browse files
[CodeGen] Use MapVector::contains (NFC) (#140352)
1 parent 2c51f5e commit 3972215

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/include/llvm/CodeGen/GCMetadata.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ class GCStrategyMap {
192192
return Strategies.try_emplace(GCName);
193193
}
194194

195-
bool contains(StringRef GCName) const {
196-
return Strategies.find(GCName) != Strategies.end();
197-
}
195+
bool contains(StringRef GCName) const { return Strategies.contains(GCName); }
198196
};
199197

200198
/// An analysis pass which caches information about the entire Module.

0 commit comments

Comments
 (0)