1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

avoid a warning

llvm-svn: 29674
This commit is contained in:
Chris Lattner 2006-08-14 21:47:50 +00:00
parent d9ce68d3ec
commit 67305e3cf6

View File

@ -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();