projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[X86] Pair a NoVLX with HasAVX512 to match the others and remove a unique predicate...
[oota-llvm.git]
/
lib
/
Support
/
SmallVector.cpp
diff --git
a/lib/Support/SmallVector.cpp
b/lib/Support/SmallVector.cpp
index f9c0e78270c9195a23e83498b4e1489474c3f4b0..b931505bd6a133d8d01dfcddba396e802b5e6fb2 100644
(file)
--- a/
lib/Support/SmallVector.cpp
+++ b/
lib/Support/SmallVector.cpp
@@
-33,6
+33,7
@@
void SmallVectorBase::grow_pod(void *FirstEl, size_t MinSizeInBytes,
// If this wasn't grown from the inline copy, grow the allocated space.
NewElts = realloc(this->BeginX, NewCapacityInBytes);
}
+ assert(NewElts && "Out of memory");
this->EndX = (char*)NewElts+CurSizeBytes;
this->BeginX = NewElts;