From fe183d7e96b4ff90224df1ff486d1ad894cf10cf Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Mon, 17 Oct 2016 06:46:35 +0000 Subject: [PATCH] AST: Prefer LLVM_NODISCARD to LLVM_ATTRIBUTE_UNUSED_RESULT llvm-svn: 284366 --- clang/lib/AST/ExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 5413ceb..c5e7598 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -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 -- 2.7.4