Mercurial > hg > CbC > CbC_llvm
diff lib/Support/SmallVector.cpp @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
line wrap: on
line diff
--- a/lib/Support/SmallVector.cpp Wed Feb 18 14:56:07 2015 +0900 +++ b/lib/Support/SmallVector.cpp Tue Oct 13 17:48:58 2015 +0900 @@ -33,6 +33,7 @@ // 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;