diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-17 18:31:18 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-08-17 18:31:18 +0000 |
commit | d47b1d76fd5d9354e70f3f9942d54cf73c7495ce (patch) | |
tree | f7f0c91d84f7c40e0df9cf2c12f8aa75f79772e6 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 52d23d4ceee1d6706be702fa791f50a77f1f2245 (diff) | |
download | llvm-d47b1d76fd5d9354e70f3f9942d54cf73c7495ce.zip llvm-d47b1d76fd5d9354e70f3f9942d54cf73c7495ce.tar.gz llvm-d47b1d76fd5d9354e70f3f9942d54cf73c7495ce.tar.bz2 |
BumpPtrAllocator: remove 'no slabs allocated yet' check
We already handle the no-slabs case when checking whether the current slab
is large enough: if no slabs have been allocated, CurPtr and End are both 0.
alignPtr(0), will still be 0, and so "if (Ptr + Size <= End)" fails.
Differential Revision: http://reviews.llvm.org/D4943
llvm-svn: 215841
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions