mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-30 16:34:03 +00:00
avoid a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df32aac51b
commit
b5677f933f
@ -196,7 +196,7 @@ SmallVectorImpl<T>::operator=(const SmallVectorImpl<T> &RHS) {
|
||||
|
||||
// If we have to grow to have enough elements, destroy the current elements.
|
||||
// This allows us to avoid copying them during the grow.
|
||||
if (Capacity-Begin < RHSSize) {
|
||||
if (unsigned(Capacity-Begin) < RHSSize) {
|
||||
// Destroy current elements.
|
||||
for (iterator I = Begin, E = End; I != E; ++I)
|
||||
I->~T();
|
||||
|
Loading…
Reference in New Issue
Block a user