Skip to content

Commit b0763a1

Browse files
[DebugInfo] Use std::size (NFC)
1 parent 18a3c7a commit b0763a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,7 @@ DWARFFormValue::getAsFile(DILineInfoSpecifier::FileLineInfoKind Kind) const {
761761
bool llvm::dwarf::doesFormBelongToClass(dwarf::Form Form, DWARFFormValue::FormClass FC,
762762
uint16_t DwarfVersion) {
763763
// First, check DWARF5 form classes.
764-
if (Form < ArrayRef(DWARF5FormClasses).size() &&
765-
DWARF5FormClasses[Form] == FC)
764+
if (Form < std::size(DWARF5FormClasses) && DWARF5FormClasses[Form] == FC)
766765
return true;
767766
// Check more forms from extensions and proposals.
768767
switch (Form) {

0 commit comments

Comments
 (0)