[PATCH] D60547: Add checks for MSVC in LLVM_FALLTHROUGH and LLVM_NODISCARD
Zachary Turner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 09:21:14 PDT 2019
zturner added reviewers: zturner, rnk.
zturner added inline comments.
================
Comment at: llvm/include/llvm/Support/Compiler.h:123
/// LLVM_NODISCARD - Warn if a type or return value is discarded.
#if __cplusplus > 201402L && __has_cpp_attribute(nodiscard)
#define LLVM_NODISCARD [[nodiscard]]
----------------
What about just changing this `&&` to an `||`?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60547/new/
https://reviews.llvm.org/D60547
More information about the llvm-commits
mailing list