[PATCH] D150573: [Coverity] Fix unchecked return value, NFC

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 07:13:34 PDT 2023


pengfei added a comment.

@barannikov88 I still think `[[nodiscard]]` and `(void)` are a great couple for functions we care of the return value much rather than a contradication. The `(void)` tells compiler we are intended to do so here. This looks much better than we comment it like above everywhere.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150573/new/

https://reviews.llvm.org/D150573



More information about the llvm-commits mailing list