summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-01 15:31:17 +0100
committerKeith Whitwell <[email protected]>2008-05-01 15:37:30 +0100
commit727257f32002544658219d2e0163993c1cbc5644 (patch)
tree3b9692f91e816c46be8156419a319122c610a631 /src/gallium/auxiliary/rtasm/rtasm_x86sse.c
parent6980823da9120d8d8533f7a78eac2d63dece430f (diff)
rtasm: assert stack is fully popped in return
Diffstat (limited to 'src/gallium/auxiliary/rtasm/rtasm_x86sse.c')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_x86sse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index d7e22305573..40f6f973d69 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -495,6 +495,7 @@ void x86_dec( struct x86_function *p,
void x86_ret( struct x86_function *p )
{
DUMP();
+ assert(p->stack_offset == 0);
emit_1ub(p, 0xc3);
}