[all-commits] [llvm/llvm-project] 22b36b: [Memprof] Fix a warning

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Jun 26 12:06:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22b36bfa3f18ef1cc858d3301c4eea00a280403a
      https://github.com/llvm/llvm-project/commit/22b36bfa3f18ef1cc858d3301c4eea00a280403a
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

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

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

This patch fixes:

  llvm/lib/ProfileData/MemProfReader.cpp:685:1: error: non-void
  function does not return a value in all con trol paths
  [-Werror,-Wreturn-type]

While I am at it, this patch removes an else-after-return.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list