[all-commits] [llvm/llvm-project] 625e0e: [BOLT] [NFC] Remove unused variable

Paul Kirth via All-commits all-commits at lists.llvm.org
Tue May 3 08:16:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 625e0e611b405b9c45b6d8a692d7ef17ef04e54f
      https://github.com/llvm/llvm-project/commit/625e0e611b405b9c45b6d8a692d7ef17ef04e54f
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2022-05-03 (Tue, 03 May 2022)

  Changed paths:
    M bolt/lib/Profile/DataReader.cpp

  Log Message:
  -----------
  [BOLT] [NFC] Remove unused variable

This patch fixes a warning from -Wunused-but-set-variable
MismatchedBranches are counted, but are never reported.
Since evaluateProfileData() should already identify and report
these cases, we can safely remove the unused variable.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D124588




More information about the All-commits mailing list