[llvm] 8466480 - [ProfData] Remove unused variable in unittest

Min Hsu via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 14:44:40 PDT 2024


Author: Min Hsu
Date: 2024-05-09T14:42:52-07:00
New Revision: 8466480bdad9d1ef858329ec51cd910c419036a0

URL: https://github.com/llvm/llvm-project/commit/8466480bdad9d1ef858329ec51cd910c419036a0
DIFF: https://github.com/llvm/llvm-project/commit/8466480bdad9d1ef858329ec51cd910c419036a0.diff

LOG: [ProfData] Remove unused variable in unittest

Removed unused `VTables` in unittests/ProfileData/InstrProfTest.cpp.

NFC.

Added: 
    

Modified: 
    llvm/unittests/ProfileData/InstrProfTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 8f2c5aee1819d..924d848176e77 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -1782,7 +1782,6 @@ TEST(SymtabTest, instr_prof_symtab_module_test) {
     EXPECT_THAT(PGOFuncName.str(), EndsWith(Funcs[I].str()));
   }
 
-  StringRef VTables[] = {"ExternalGV", "LocalGV"};
   for (auto [VTableName, PGOName] : {std::pair{"ExternalGV", "ExternalGV"},
                                      {"LocalGV", "MyModule.cpp;LocalGV"}}) {
     GlobalVariable *GV =


        


More information about the llvm-commits mailing list