From 73aa4993715c7fa544c994bf31f4fe8f33e20a58 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 26 Feb 2009 18:53:35 -0700 Subject: [PATCH] clean up offsetToFrameIndex code --- src/compiler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index 08f65d4904..608efd88ac 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -666,9 +666,7 @@ offsetToFrameIndex(Context* c, unsigned offset) { unsigned normalizedOffset = offset / BytesPerWord; - return ((normalizedOffset - >= usableFrameSize(c) - + c->arch->frameFooterSize()) ? + return ((normalizedOffset >= c->alignedFrameSize) ? (normalizedOffset - (c->arch->frameFooterSize() * 2) - c->arch->frameHeaderSize()) :