From 8be5f4fdfa8052b99810e63869f73908e95127e5 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Tue, 24 Mar 1992 16:16:09 +0000
Subject: [PATCH] It's not a good idea to use a value before it's been
 computed.

---
 ldb/sparc-arch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldb/sparc-arch.c b/ldb/sparc-arch.c
index 4163d68f6..01532df5e 100644
--- a/ldb/sparc-arch.c
+++ b/ldb/sparc-arch.c
@@ -133,6 +133,7 @@ static void sigemt_handler(signal, code, context)
     /* Extract the parts of the inst. */
     subtract = badinst & (1<<19);
     rs1 = (badinst>>14) & 0x1f;
+    op1 = context->sc_regs[rs1];
 
     /* If the first arg is $ALLOC then it is really a signal-pending note */
     /* for the pseudo-atomic noise. */
@@ -150,7 +151,6 @@ static void sigemt_handler(signal, code, context)
 	return;
     }
 
-    op1 = context->sc_regs[rs1];
     if ((op1 & 3) != 0) {
 	/* The first arg wan't a fixnum. */
 	interrupt_internal_error(signal, code, context, FALSE);
-- 
GitLab