mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-31 06:04:58 +00:00
[llvm] Use llvm::is_contained (NFC)
This commit is contained in:
parent
fbb5f73371
commit
fdd5f695fc
@ -359,8 +359,7 @@ public:
|
||||
|
||||
/// Add kind of accelerator tables to be generated.
|
||||
void addAccelTableKind(AccelTableKind Kind) {
|
||||
assert(std::find(Options.AccelTables.begin(), Options.AccelTables.end(),
|
||||
Kind) == Options.AccelTables.end());
|
||||
assert(!llvm::is_contained(Options.AccelTables, Kind));
|
||||
Options.AccelTables.emplace_back(Kind);
|
||||
}
|
||||
|
||||
|
@ -99,8 +99,7 @@ public:
|
||||
|
||||
/// Add kind of accelerator tables to be generated.
|
||||
void addAccelTableKind(AccelTableKind Kind) override {
|
||||
assert(std::find(Options.AccelTables.begin(), Options.AccelTables.end(),
|
||||
Kind) == Options.AccelTables.end());
|
||||
assert(!llvm::is_contained(Options.AccelTables, Kind));
|
||||
Options.AccelTables.emplace_back(Kind);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user