summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/ADT/ScopeExit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/ScopeExit.h b/llvm/include/llvm/ADT/ScopeExit.h
index 6786a61c0bf..28a1124773d 100644
--- a/llvm/include/llvm/ADT/ScopeExit.h
+++ b/llvm/include/llvm/ADT/ScopeExit.h
@@ -23,7 +23,7 @@
namespace llvm {
namespace detail {
-template <typename Callable> class LLVM_ATTRIBUTE_UNUSED_RESULT scope_exit {
+template <typename Callable> class scope_exit {
Callable ExitFunction;
public:
@@ -44,7 +44,7 @@ public:
// Interface is specified by p0052r2.
template <typename Callable>
detail::scope_exit<typename std::decay<Callable>::type>
-make_scope_exit(Callable &&F) {
+ LLVM_ATTRIBUTE_UNUSED_RESULT make_scope_exit(Callable &&F) {
return detail::scope_exit<typename std::decay<Callable>::type>(
std::forward<Callable>(F));
}
OpenPOWER on IntegriCloud