diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-10-17 06:46:35 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-10-17 06:46:35 +0000 |
commit | fe183d7e96b4ff90224df1ff486d1ad894cf10cf (patch) | |
tree | ab32d71f19b773a8ab496e4d5c0fe3ccb069ffb8 /clang/lib/AST/ExprConstant.cpp | |
parent | 1f5178ff9f09f4b82f2eb3015fc3e15ac5610df0 (diff) | |
download | llvm-fe183d7e96b4ff90224df1ff486d1ad894cf10cf.zip llvm-fe183d7e96b4ff90224df1ff486d1ad894cf10cf.tar.gz llvm-fe183d7e96b4ff90224df1ff486d1ad894cf10cf.tar.bz2 |
AST: Prefer LLVM_NODISCARD to LLVM_ATTRIBUTE_UNUSED_RESULT
llvm-svn: 284366
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |