Skip to content

Commit e376ced

Browse files
[DWARFVerifier] Fix getNames return type mismatch
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
1 parent 6551cfa commit e376ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ DWARFVerifier::verifyNameIndexAbbrevs(const DWARFDebugNames::NameIndex &NI) {
13541354
static SmallVector<StringRef, 3> getNames(const DWARFDie &DIE,
13551355
bool IncludeStrippedTemplateNames,
13561356
bool IncludeLinkageName = true) {
1357-
SmallVector<StringRef, 2> Result;
1357+
SmallVector<StringRef, 3> Result;
13581358
if (const char *Str = DIE.getShortName()) {
13591359
Result.emplace_back(Str);
13601360
if (IncludeStrippedTemplateNames) {

0 commit comments

Comments
 (0)