[llvm] MathExtras: avoid unnecessarily widening types (PR #95426)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 04:41:13 PDT 2024


================
@@ -355,9 +372,14 @@ constexpr inline uint64_t MinAlign(uint64_t A, uint64_t B) {
   return (A | B) & (1 + ~(A | B));
 }
 
+/// Fallback when arguments aren't integral.
----------------
artagnon wrote:

Enums, for instance.

https://github.com/llvm/llvm-project/pull/95426


More information about the llvm-commits mailing list