Skip to content

Commit

Permalink
[DWARFVerifier] Fix getNames return type mismatch
Browse files Browse the repository at this point in the history
D155723 changed the return type of getNames to a SmallVector of a different
size. However, it failed to also update the declaration of the variable that is
returned in such function.

Differential Revision: https://reviews.llvm.org/D157881
  • Loading branch information
felipepiovezan committed Aug 14, 2023
1 parent 6551cfa commit e376ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ DWARFVerifier::verifyNameIndexAbbrevs(const DWARFDebugNames::NameIndex &NI) {
static SmallVector<StringRef, 3> getNames(const DWARFDie &DIE,
bool IncludeStrippedTemplateNames,
bool IncludeLinkageName = true) {
SmallVector<StringRef, 2> Result;
SmallVector<StringRef, 3> Result;
if (const char *Str = DIE.getShortName()) {
Result.emplace_back(Str);
if (IncludeStrippedTemplateNames) {
Expand Down

0 comments on commit e376ced

Please sign in to comment.