Skip to content

Commit

Permalink
Fix compilation issue with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
jschj authored and Maxim-Doronin committed Jun 5, 2024
1 parent 83f6c04 commit 859b632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,8 @@ unsigned DWARFVerifier::verifyNameIndexAttribute(
}

if (AttrEnc.Index == dwarf::DW_IDX_parent) {
constexpr static auto AllowedForms = {dwarf::Form::DW_FORM_flag_present,
dwarf::Form::DW_FORM_ref4};
static constexpr dwarf::Form AllowedForms[] = {dwarf::Form::DW_FORM_flag_present,
dwarf::Form::DW_FORM_ref4};
if (!is_contained(AllowedForms, AttrEnc.Form)) {
error() << formatv("NameIndex @ {0:x}: Abbreviation {1:x}: DW_IDX_parent "
"uses an unexpected form {2} (should be "
Expand Down

0 comments on commit 859b632

Please sign in to comment.