[llvm] 80c698d - [ADT] Use std::conditional_t (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 25 23:14:27 PDT 2022
Author: Kazu Hirata
Date: 2022-09-25T23:14:13-07:00
New Revision: 80c698d6b9688b464aa34d75aa977d07d06eac66
URL: https://github.com/llvm/llvm-project/commit/80c698d6b9688b464aa34d75aa977d07d06eac66
DIFF: https://github.com/llvm/llvm-project/commit/80c698d6b9688b464aa34d75aa977d07d06eac66.diff
LOG: [ADT] Use std::conditional_t (NFC)
Added:
Modified:
llvm/include/llvm/ADT/SmallVector.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 14f051e383f72..513fce93549fb 100644
--- a/llvm/include/llvm/ADT/SmallVector.h
+++ b/llvm/include/llvm/ADT/SmallVector.h
@@ -468,8 +468,7 @@ class SmallVectorTemplateBase<T, true> : public SmallVectorTemplateCommon<T> {
/// Either const T& or T, depending on whether it's cheap enough to take
/// parameters by value.
- using ValueParamT =
- typename std::conditional<TakesParamByValue, T, const T &>::type;
+ using ValueParamT = std::conditional_t<TakesParamByValue, T, const T &>;
SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
More information about the llvm-commits
mailing list