add asserts in CallEvent

This commit is contained in:
Joshua Warner 2014-05-01 19:49:43 -06:00 committed by Joshua Warner
parent 1318b9ca2a
commit d2e9911161

View File

@ -319,6 +319,10 @@ class CallEvent: public Event {
unsigned argumentIndex = 0;
while (true) {
assert(c, arguments[index] == s->value);
assert(c,
argumentIndex + 1 >= arguments.count || arguments[index + 1]
== s->next->value);
unsigned footprint
= (argumentIndex + 1 < arguments.count and s->value->nextWord
== s->next->value)