[llvm] [ProfileData] Implement contains in SampleProfileNameTable (NFC) (PR #211995)

antoine moynault via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 00:26:43 PDT 2026


antmox wrote:

Hi @kazutakahirata ,

Looks like this patch broke arm 32-bits bots:
https://lab.llvm.org/buildbot/#/builders/154/builds/34420
https://lab.llvm.org/buildbot/#/builders/79/builds/3635
https://lab.llvm.org/buildbot/#/builders/135/builds/4076
```
SampleProfReader.h:509:41: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
  509 |                {Data + NumCS + NumFlat, NumInlinees}}} {}
      |                                         ^~~~~~~~~~~
```
Not sure if it is better to just add static_cast here, or to change the parameter's type to size_t 
Could you please take a look?

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


More information about the llvm-commits mailing list