Ticket #1114: t1114-llvm-dead-store.patch
File t1114-llvm-dead-store.patch, 3.4 KB (added by , 13 years ago) |
---|
-
source/ps/GameSetup/GameSetup.cpp
1215 1215 jsval msgval = ToJSVal(message); 1216 1216 1217 1217 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); 1219 1219 } 1220 1220 } -
source/ps/Game.cpp
204 204 JSBool ok = JS_GetProperty(g_ScriptingHost.getContext(), g_GUI->GetScriptObject(), "reallyStartGame", &fval); 205 205 ENSURE(ok); 206 206 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); 208 208 } 209 209 210 210 if (g_NetClient) -
source/gui/CInput.cpp
1492 1492 if (destroy_row_from != m_CharacterPositions.begin()) 1493 1493 --destroy_row_from; 1494 1494 1495 destroy_row_from_used = true; 1495 destroy_row_from_used = true; 1496 1496 1497 1497 current_line = destroy_row_from; 1498 1498 } … … 1502 1502 destroy_row_to = m_CharacterPositions.end(); 1503 1503 check_point_row_start = -1; 1504 1504 1505 destroy_row_from_used = true; 1505 destroy_row_from_used = true; 1506 1506 } 1507 1507 1508 1508 // set 'from' to the row we'll destroy from … … 1692 1692 destroy_row_from = m_CharacterPositions.end(); 1693 1693 --destroy_row_from; 1694 1694 1695 destroy_row_from_used = true; 1695 destroy_row_from_used = true; 1696 1696 1697 1697 current_line = destroy_row_from; 1698 1698 } … … 1702 1702 destroy_row_to = m_CharacterPositions.end(); 1703 1703 check_point_row_start = check_point_row_end = -1; 1704 1704 1705 destroy_row_to_used = true; 1705 destroy_row_to_used = true; 1706 1706 } 1707 1707 1708 1708 // set 'from' to the from row we'll destroy 1709 1709 // and 'to' to 'to_after' 1710 from = destroy_row_from->m_ListStart; 1710 from = destroy_row_from->m_ListStart; 1711 1711 1712 1712 if (destroy_row_to != m_CharacterPositions.end()) 1713 1713 to = destroy_row_to->m_ListStart; // notice it will iterate [from, to[, so it will never reach to. -
source/network/NetServer.cpp
526 526 { 527 527 // (do nothing) 528 528 } 529 foundPlayerID = true; 529 foundPlayerID = true; 530 530 } 531 531 532 532 PlayerAssignment assignment; -
source/renderer/ModelRenderer.cpp
318 318 { 319 319 bmrdata = new BMRModelData(m, model); 320 320 bmrdata->m_Data = m->vertexRenderer->CreateModelData(model); 321 rdata = bmrdata; 321 rdata = bmrdata; 322 322 model->SetRenderData(bmrdata); 323 323 model->SetDirty(~0u); 324 324 }