[PATCH] D107240: [LLVM][NFC] Make multiple bitwise MathExtras functions constexpr

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 18:41:24 PDT 2021


craig.topper added a comment.

I copied a chunk of this patch to godbolt and added two different constexpr usages of countLeadingZeros that both fail with MSVC https://godbolt.org/z/Maen4bac4 I'm guessing that because everything is a template, MSVC doesn't diagnose anything until you try to use it in constexpr context.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107240/new/

https://reviews.llvm.org/D107240



More information about the llvm-commits mailing list