diff options
-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 0ade4847b4..3e952ac447 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -148,7 +148,7 @@ public: void assign(unsigned NumElts, const T &Elt) { clear(); - if (NumElts > Capacity) + if (Begin+NumElts > Capacity) grow(NumElts); End = Begin+NumElts; for (; NumElts; --NumElts) |