diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-14 21:47:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-14 21:47:50 +0000 |
commit | b5677f933f918acd8b8525635510d22dfb26285e (patch) | |
tree | 7254deaff4b62206ffdcc9a138935aee7f176d0a | |
parent | df32aac51b611633301e4a2eb5824c9afa7bd674 (diff) |
avoid a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29674 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/SmallVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 99ad5fe3c2..ae258846e7 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -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(); |