From 5b19463f117274a7af69ae04d005d254b743220c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 20 Nov 2022 11:52:04 -0800 Subject: [PATCH] [Support] Use std::is_convertible_v (NFC) --- llvm/include/llvm/Support/Error.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h index 0282f18..04c12cb 100644 --- a/llvm/include/llvm/Support/Error.h +++ b/llvm/include/llvm/Support/Error.h @@ -508,7 +508,7 @@ public: /// must be convertible to T. template Expected(OtherT &&Val, - std::enable_if_t::value> * = nullptr) + std::enable_if_t> * = nullptr) : HasError(false) #if LLVM_ENABLE_ABI_BREAKING_CHECKS // Expected is unchecked upon construction in Debug builds. @@ -525,9 +525,8 @@ public: /// Move construct an Expected value from an Expected, where OtherT /// must be convertible to T. template - Expected( - Expected &&Other, - std::enable_if_t::value> * = nullptr) { + Expected(Expected &&Other, + std::enable_if_t> * = nullptr) { moveConstruct(std::move(Other)); } @@ -536,7 +535,7 @@ public: template explicit Expected( Expected &&Other, - std::enable_if_t::value> * = nullptr) { + std::enable_if_t> * = nullptr) { moveConstruct(std::move(Other)); } -- 2.7.4