Skip to content
Unverified Commit 5fb39efe authored by Andrei Golubev's avatar Andrei Golubev Committed by GitHub
Browse files

[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: default avatarOrest Chura <orest.chura@intel.com>
parent f36845d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment