From: Teresa Johnson Date: Thu, 22 Sep 2022 20:18:03 +0000 (-0700) Subject: [MemProf] Fix buildbot error due to unused variable from bad merge X-Git-Tag: upstream/17.0.6~32727 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9ff53d42feac7fc157718523275619a8106f2f3;p=platform%2Fupstream%2Fllvm.git [MemProf] Fix buildbot error due to unused variable from bad merge 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 --- diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 3a08186..2272814 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -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;