File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,7 @@ bool MagicNumbersCheck::isIgnoredValue(const IntegerLiteral *Literal) const {
202
202
if (IgnorePowersOf2IntegerValues && IntValue.isPowerOf2 ())
203
203
return true ;
204
204
205
- return std::binary_search (IgnoredIntegerValues.begin (),
206
- IgnoredIntegerValues.end (), Value);
205
+ return llvm::binary_search (IgnoredIntegerValues, Value);
207
206
}
208
207
209
208
bool MagicNumbersCheck::isIgnoredValue (const FloatingLiteral *Literal) const {
@@ -213,14 +212,12 @@ bool MagicNumbersCheck::isIgnoredValue(const FloatingLiteral *Literal) const {
213
212
214
213
if (&FloatValue.getSemantics () == &llvm::APFloat::IEEEsingle ()) {
215
214
const float Value = FloatValue.convertToFloat ();
216
- return std::binary_search (IgnoredFloatingPointValues.begin (),
217
- IgnoredFloatingPointValues.end (), Value);
215
+ return llvm::binary_search (IgnoredFloatingPointValues, Value);
218
216
}
219
217
220
218
if (&FloatValue.getSemantics () == &llvm::APFloat::IEEEdouble ()) {
221
219
const double Value = FloatValue.convertToDouble ();
222
- return std::binary_search (IgnoredDoublePointValues.begin (),
223
- IgnoredDoublePointValues.end (), Value);
220
+ return llvm::binary_search (IgnoredDoublePointValues, Value);
224
221
}
225
222
226
223
return false ;
You can’t perform that action at this time.
0 commit comments