[llvm] e376ced - [DWARFVerifier] Fix getNames return type mismatch
    Felipe de Azevedo Piovezan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Aug 14 08:01:48 PDT 2023
    
    
  
Author: Felipe de Azevedo Piovezan
Date: 2023-08-14T11:01:39-04:00
New Revision: e376ced67cc3703b6a7a4ce488fc05a18add3b25
URL: https://github.com/llvm/llvm-project/commit/e376ced67cc3703b6a7a4ce488fc05a18add3b25
DIFF: https://github.com/llvm/llvm-project/commit/e376ced67cc3703b6a7a4ce488fc05a18add3b25.diff
LOG: [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
Added: 
    
Modified: 
    llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
index 8f9b0c8f196906..9e3e791a13927e 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -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) {
        
    
    
More information about the llvm-commits
mailing list