diff options
author | Andrei Golubev <andrey.golubev@intel.com> | 2024-01-22 10:39:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 00:39:11 -0800 |
commit | 5fb39efe680642c6cab072560efa3bfce6646fb0 (patch) | |
tree | be337a43d47aa33ac94bbd77369b6654f6cdc21f /llvm/tools/llvm-cov/SourceCoverageView.cpp | |
parent | f36845d0c696023ea97931a4201b43ddfababf9c (diff) | |
download | llvm-5fb39efe680642c6cab072560efa3bfce6646fb0.zip llvm-5fb39efe680642c6cab072560efa3bfce6646fb0.tar.gz llvm-5fb39efe680642c6cab072560efa3bfce6646fb0.tar.bz2 |
[LLVM][ADT] Explicitly convert size_t values to SmallVector's size type (#77939)
Multiple places rely on implicit conversion when assigning 'size_t'
values to the member fields (size or capacity) of SmallVector.
Depending on the platform / compiler configuration, this may result in
narrowing conversion warnings (especially given that the size type of
SmallVector's member fields is determined based on type T - in
SmallVector<T>). To avoid the problem altogether, make the conversions
explicit.
Co-authored-by: Orest Chura <orest.chura@intel.com>
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions