[llvm] r275219 - Remove unused variable to fix bot failure from r275216

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 14:29:05 PDT 2016


Author: tejohnson
Date: Tue Jul 12 16:29:05 2016
New Revision: 275219

URL: http://llvm.org/viewvc/llvm-project?rev=275219&view=rev
Log:
Remove unused variable to fix bot failure from r275216

Remove unused variable added in r275216. Should fix bot failure:
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/24665

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp?rev=275219&r1=275218&r2=275219&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp Tue Jul 12 16:29:05 2016
@@ -257,11 +257,10 @@ std::vector<ICallPromotionFunc::Promotio
 ICallPromotionFunc::getPromotionCandidatesForCallSite(
     Instruction *Inst, const ArrayRef<InstrProfValueData> &ValueDataRef,
     uint64_t TotalCount, uint32_t NumCandidates) {
-  uint32_t NumVals = ValueDataRef.size();
   std::vector<PromotionCandidate> Ret;
 
   DEBUG(dbgs() << " \nWork on callsite #" << NumOfPGOICallsites << *Inst
-               << " Num_targets: " << NumVals
+               << " Num_targets: " << ValueDataRef.size()
                << " Num_candidates: " << NumCandidates << "\n");
   NumOfPGOICallsites++;
   if (ICPCSSkip != 0 && NumOfPGOICallsites <= ICPCSSkip) {




More information about the llvm-commits mailing list