]> granicus.if.org Git - clang/commitdiff
AST: Prefer LLVM_NODISCARD to LLVM_ATTRIBUTE_UNUSED_RESULT
authorJustin Bogner <mail@justinbogner.com>
Mon, 17 Oct 2016 06:46:35 +0000 (06:46 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 17 Oct 2016 06:46:35 +0000 (06:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284366 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 5413cebd87b33744da9e6a13c6a697603efc3f47..c5e7598dcecfaed7773ba1cdce7df97ee6f4ca80 100644 (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