From: Kazu Hirata Date: Sun, 20 Nov 2022 19:52:04 +0000 (-0800) Subject: [Support] Use std::is_convertible_v (NFC) X-Git-Tag: upstream/17.0.6~27053 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b19463f117274a7af69ae04d005d254b743220c;p=platform%2Fupstream%2Fllvm.git [Support] Use std::is_convertible_v (NFC) --- 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)); }