[all-commits] [llvm/llvm-project] 282948: [IR] Ignore the return value of std::remove_if (NFC)

Jie Fu via All-commits all-commits at lists.llvm.org
Thu Aug 17 01:15:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2829486a8b4b50ba3f63ae445d28f9c6f50a963b
      https://github.com/llvm/llvm-project/commit/2829486a8b4b50ba3f63ae445d28f9c6f50a963b
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M llvm/lib/IR/Instructions.cpp

  Log Message:
  -----------
  [IR] Ignore the return value of std::remove_if (NFC)

/Users/jiefu/llvm-project/llvm/lib/IR/Instructions.cpp:166:3: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
  std::remove_if(const_cast<block_iterator>(block_begin()),
  ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.




More information about the All-commits mailing list