projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df32aac
)
avoid a warning
author
Chris Lattner
<sabre@nondot.org>
Mon, 14 Aug 2006 21:47:50 +0000
(21:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 14 Aug 2006 21:47:50 +0000
(21:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29674
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/SmallVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SmallVector.h
b/include/llvm/ADT/SmallVector.h
index 99ad5fe3c24311311c0502b9e5599654619ca7cb..ae258846e74c0c7e4d048663e1e0502679f7ea8b 100644
(file)
--- 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();