From: Justin Bogner Date: Mon, 17 Oct 2016 06:46:35 +0000 (+0000) Subject: AST: Prefer LLVM_NODISCARD to LLVM_ATTRIBUTE_UNUSED_RESULT X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3711eb51899387a00d0f41de536bf92235a316b1;p=clang AST: Prefer LLVM_NODISCARD to LLVM_ATTRIBUTE_UNUSED_RESULT git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284366 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 5413cebd87..c5e7598dce 100644 --- a/lib/AST/ExprConstant.cpp +++ b/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