Allow PopStackFrames leave the stack empty.

llvm-svn: 168425
This commit is contained in:
Evgeniy Stepanov 2012-11-21 13:00:04 +00:00
parent 734f1eb5f4
commit 979a1e7352
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ void StackTrace::FastUnwindStack(uptr pc, uptr bp,
}
void StackTrace::PopStackFrames(uptr count) {
CHECK(size > count);
CHECK(size >= count);
size -= count;
for (uptr i = 0; i < size; i++) {
trace[i] = trace[i + count];