diff options
author | Brian Paul <[email protected]> | 2011-02-16 14:17:41 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-02-16 17:07:02 -0700 |
commit | b5df19492322cbe3a61d45981111fd862772f427 (patch) | |
tree | 0dc99e719e9f40673e7c3f369bc6bf881f90ac97 | |
parent | 2f5032ec1e2adcac3e6e990624f05900a459f270 (diff) |
rtasm: add dummy return statement to silence MSVC warning
And use assert(0) instead of abort() to be consistent with rest
of Gallium.
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c index 75b0f6a68ea..b03dd3a0cf8 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c +++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c @@ -2132,7 +2132,8 @@ struct x86_reg x86_fn_arg( struct x86_function *p, return x86_make_disp(x86_make_reg(file_REG32, reg_SP), p->stack_offset + arg * 4); /* ??? */ default: - abort(); + assert(0 && "Unexpected x86 target ABI in x86_fn_arg"); + return x86_make_reg(file_REG32, reg_CX); /* not used / silence warning */ } } |