We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a3c7a commit b0763a1Copy full SHA for b0763a1
llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
@@ -761,8 +761,7 @@ DWARFFormValue::getAsFile(DILineInfoSpecifier::FileLineInfoKind Kind) const {
761
bool llvm::dwarf::doesFormBelongToClass(dwarf::Form Form, DWARFFormValue::FormClass FC,
762
uint16_t DwarfVersion) {
763
// First, check DWARF5 form classes.
764
- if (Form < ArrayRef(DWARF5FormClasses).size() &&
765
- DWARF5FormClasses[Form] == FC)
+ if (Form < std::size(DWARF5FormClasses) && DWARF5FormClasses[Form] == FC)
766
return true;
767
// Check more forms from extensions and proposals.
768
switch (Form) {
0 commit comments