diff --git a/include/llvm/Support/AlignOf.h b/include/llvm/Support/AlignOf.h index e1e304f4c1a9..de2f1add0b1e 100644 --- a/include/llvm/Support/AlignOf.h +++ b/include/llvm/Support/AlignOf.h @@ -110,15 +110,14 @@ namespace detail { template constexpr size_t aligner() { return alignof(T1); } template constexpr size_t aligner() { - size_t rest = aligner(); - return (alignof(T1) > rest) ? alignof(T1) : rest; + return (alignof(T1) > aligner()) ? alignof(T1) + : aligner(); } template constexpr size_t sizer() { return sizeof(T1); } template constexpr size_t sizer() { - size_t rest = sizer(); - return (sizeof(T1) > rest) ? sizeof(T1) : rest; + return (sizeof(T1) > sizer()) ? sizeof(T1) : sizer(); } } // end namespace detail