[llvm] [Analysis] Make LocationSize conversion from uint64_t explicit (PR #133342)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 4 03:41:58 PDT 2025
================
@@ -102,7 +102,7 @@ class LocationSize {
//
// Since the overwhelming majority of users of this provide precise values,
// this assumes the provided value is precise.
- constexpr LocationSize(uint64_t Raw)
+ explicit constexpr LocationSize(uint64_t Raw)
----------------
nikic wrote:
Seeing as you've migrated the uses to LocationSize::precise(), maybe also resolve the FIXME by making this ctor private?
https://github.com/llvm/llvm-project/pull/133342
More information about the llvm-commits
mailing list