[MemProf] Fix buildbot error due to unused variable from bad merge
authorTeresa Johnson <tejohnson@google.com>
Thu, 22 Sep 2022 20:18:03 +0000 (13:18 -0700)
committerTeresa Johnson <tejohnson@google.com>
Thu, 22 Sep 2022 20:24:33 +0000 (13:24 -0700)
Fix an unused variable warning introduced by a212d8da94d08e229aa8d65283e4b116310bba10
due to a bad merge with a recent change. E.g. in
https://lab.llvm.org/buildbot/#/builders/77/builds/22095

llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

index 3a08186..2272814 100644 (file)
@@ -2093,12 +2093,6 @@ static bool annotateAllFunctions(
     // function is actually hot / warm. We will reset the function hot / cold
     // attribute and drop all the profile counters.
     InstrProfRecord::CountPseudoKind PseudoKind = InstrProfRecord::NotPseudo;
-
-    // When AllMinusOnes is true, it means the profile for the function
-    // is unrepresentative and this function is actually hot. Set the
-    // entry count of the function to be multiple times of hot threshold
-    // and drop all its internal counters.
-    bool AllMinusOnes = false;
     bool AllZeros = false;
     if (!Func.readCounters(PGOReader.get(), AllZeros, PseudoKind))
       continue;