Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3972215

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎llvm/include/llvm/CodeGen/GCMetadata.h

Copy file name to clipboardExpand all lines: llvm/include/llvm/CodeGen/GCMetadata.h
+1-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.