orcc: Remove duplicate codepath
authorEdward Hervey <bilboed@bilboed.com>
Sun, 8 Mar 2015 06:51:34 +0000 (07:51 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 8 Mar 2015 06:52:40 +0000 (07:52 +0100)
The code is identical regardless of the variable value

CID #1226451

https://bugzilla.gnome.org/show_bug.cgi?id=745830

tools/orcc.c

index e29adb1..5bac289 100644 (file)
@@ -1320,13 +1320,8 @@ output_code_test (OrcProgram *p, FILE *output)
     var = &p->vars[ORC_VAR_C1 + i];
     if (var->size) {
       if (var->size < 8) {
-        if (var->value.i != 0x80000000) {
-          fprintf(output, "      orc_program_add_constant (p, %d, 0x%08x, \"%s\");\n",
-              var->size, (int)var->value.i, varnames[ORC_VAR_C1 + i]);
-        } else {
-          fprintf(output, "      orc_program_add_constant (p, %d, 0x%08x, \"%s\");\n",
-              var->size, (int)var->value.i, varnames[ORC_VAR_C1 + i]);
-        }
+       fprintf(output, "      orc_program_add_constant (p, %d, 0x%08x, \"%s\");\n",
+           var->size, (int)var->value.i, varnames[ORC_VAR_C1 + i]);
       } else {
         fprintf(output, "      orc_program_add_constant_int64 (p, %d, "
             "0x%08x%08xULL, \"%s\");\n",