summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-11-24 23:03:26 -0800
committerVinson Lee <vlee@vmware.com>2010-11-24 23:03:26 -0800
commit2cc79acc1ab5cdaadc427526a146c2c27ee0f906 (patch)
tree601a706ba70e6152a96c5128ad698b29fdfd0df6
parent995de71550d124dd93186d7264b2e6fc34a73d57 (diff)
r300/compiler: Move declaration before code.
Fixes this GCC warning with linux-x86 build. radeon_pair_regalloc.c: In function ‘compute_live_intervals’: radeon_pair_regalloc.c:222: warning: ISO C90 forbids mixed declarations and code
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c b/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c
index 3874c7e418..d53181e1f7 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c
@@ -218,8 +218,8 @@ static void compute_live_intervals(struct radeon_compiler *c,
* the BGNLOOP instruction is used as the beginning. */
if (inst->U.I.Opcode == RC_OPCODE_BGNLOOP && s->EndLoop < 0) {
int loops = 1;
- s->BeginLoop = inst->IP;
struct rc_instruction * tmp;
+ s->BeginLoop = inst->IP;
for(tmp = inst->Next;
tmp != &s->C->Program.Instructions;
tmp = tmp->Next) {