Ticket #1114: t1114-llvm-dead-store.patch

File t1114-llvm-dead-store.patch, 3.4 KB (added by Echelon9, 13 years ago)

Patch highlighting the lines LLVM reported

  • source/ps/GameSetup/GameSetup.cpp

     
    12151215        jsval msgval = ToJSVal(message);
    12161216
    12171217        if (ok && !JSVAL_IS_VOID(fval))
    1218             ok = JS_CallFunctionValue(cx, g_GUI->GetScriptObject(), fval, 1, &msgval, &rval);
     1218            ok = JS_CallFunctionValue(cx, g_GUI->GetScriptObject(), fval, 1, &msgval, &rval);
    12191219    }
    12201220}
  • source/ps/Game.cpp

     
    204204        JSBool ok = JS_GetProperty(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), "reallyStartGame", &fval);
    205205        ENSURE(ok);
    206206        if (ok && !JSVAL_IS_VOID(fval))
    207             ok = JS_CallFunctionValue(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), fval, 0, NULL, &rval);
     207            ok = JS_CallFunctionValue(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), fval, 0, NULL, &rval);
    208208    }
    209209
    210210    if (g_NetClient)
  • source/gui/CInput.cpp

     
    14921492            if (destroy_row_from != m_CharacterPositions.begin())
    14931493                --destroy_row_from;
    14941494
    1495             destroy_row_from_used = true;
     1495            destroy_row_from_used = true;
    14961496
    14971497            current_line = destroy_row_from;
    14981498        }
     
    15021502            destroy_row_to = m_CharacterPositions.end();
    15031503            check_point_row_start = -1;
    15041504
    1505             destroy_row_from_used = true;
     1505            destroy_row_from_used = true;
    15061506        }
    15071507
    15081508        // set 'from' to the row we'll destroy from
     
    16921692                    destroy_row_from = m_CharacterPositions.end();
    16931693                    --destroy_row_from;
    16941694
    1695                     destroy_row_from_used = true;
     1695                    destroy_row_from_used = true;
    16961696
    16971697                    current_line = destroy_row_from;
    16981698                }
     
    17021702                    destroy_row_to = m_CharacterPositions.end();
    17031703                    check_point_row_start = check_point_row_end = -1;
    17041704
    1705                     destroy_row_to_used = true;
     1705                    destroy_row_to_used = true;
    17061706                }
    17071707
    17081708                // set 'from' to the from row we'll destroy
    17091709                //  and 'to' to 'to_after'
    1710                 from = destroy_row_from->m_ListStart;
     1710                from = destroy_row_from->m_ListStart;
    17111711               
    17121712                if (destroy_row_to != m_CharacterPositions.end())
    17131713                    to = destroy_row_to->m_ListStart; // notice it will iterate [from, to[, so it will never reach to.
  • source/network/NetServer.cpp

     
    526526        {
    527527            // (do nothing)
    528528        }
    529         foundPlayerID = true;
     529        foundPlayerID = true;
    530530    }
    531531
    532532    PlayerAssignment assignment;
  • source/renderer/ModelRenderer.cpp

     
    318318    {
    319319        bmrdata = new BMRModelData(m, model);
    320320        bmrdata->m_Data = m->vertexRenderer->CreateModelData(model);
    321         rdata = bmrdata;
     321        rdata = bmrdata;
    322322        model->SetRenderData(bmrdata);
    323323        model->SetDirty(~0u);
    324324    }