AST: Prefer LLVM_NODISCARD to LLVM_ATTRIBUTE_UNUSED_RESULT

llvm-svn: 284366
This commit is contained in:
Justin Bogner 2016-10-17 06:46:35 +00:00
parent 1f5178ff9f
commit fe183d7e96
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ namespace {
/// (Foo(), 1) // use noteSideEffect
/// (Foo() || true) // use noteSideEffect
/// Foo() + 1 // use noteFailure
LLVM_ATTRIBUTE_UNUSED_RESULT bool noteFailure() {
LLVM_NODISCARD bool noteFailure() {
// Failure when evaluating some expression often means there is some
// subexpression whose evaluation was skipped. Therefore, (because we
// don't track whether we skipped an expression when unwinding after an