[all-commits] [llvm/llvm-project] a340d4: [ProfileData] Fix a warning

kazutakahirata via All-commits all-commits at lists.llvm.org
Tue Nov 9 10:34:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a340d474192f6e0bec9cb493af162bf1abaa73d5
      https://github.com/llvm/llvm-project/commit/a340d474192f6e0bec9cb493af162bf1abaa73d5
  Author: Kazu Hirata <kazu at google.com>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M llvm/lib/ProfileData/InstrProf.cpp

  Log Message:
  -----------
  [ProfileData] Fix a warning

This patch fixes:

  llvm/lib/ProfileData/InstrProf.cpp:146:3: error: default label in
  switch which covers all enumeration values
  [-Werror,-Wcovered-switch-default]




More information about the All-commits mailing list