From 671fd1c0f9f6db93c8813037a12ee87d125a76bb Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 11 Nov 2008 11:56:23 -0700 Subject: [PATCH] set popIndex for stack arguments in CallEvent constructor --- src/compiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler.cpp b/src/compiler.cpp index 35d7ceaea9..4b46ce9e1d 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -2263,6 +2263,10 @@ class CallEvent: public Event { target = read(c, footprintSizeInBytes(s->footprint), 1 << MemoryOperand, 0, frameIndex); frameIndex += s->footprint; + + if (stackArgumentFootprint == 0) { + popIndex = frameIndex; + } } addRead(c, this, s->value, target); index += s->footprint;