[Scummvm-cvs-logs] SF.net SVN: scummvm:[51848] tools/branches/gsoc2010-decompiler/decompiler/ control_flow.cpp

pidgeot at users.sourceforge.net pidgeot at users.sourceforge.net
Sun Aug 8 02:20:58 CEST 2010


Revision: 51848
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51848&view=rev
Author:   pidgeot
Date:     2010-08-08 00:20:57 +0000 (Sun, 08 Aug 2010)

Log Message:
-----------
DECOMPILER: Remove useless check in else detection

Modified Paths:
--------------
    tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp

Modified: tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp	2010-08-07 22:42:12 UTC (rev 51847)
+++ tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp	2010-08-08 00:20:57 UTC (rev 51848)
@@ -511,8 +511,7 @@
 	VertexRange vr = boost::vertices(_g);
 	for (VertexIterator v = vr.first; v != vr.second; ++v) {
 		GroupPtr gr = GET(*v);
-		// if: Undetermined block with conditional jump
-		if (gr->_type == kIfCond && (gr->_end->_type == kCondJump || gr->_end->_type == kCondJumpRel)) {
+		if (gr->_type == kIfCond) {
 			OutEdgeRange oer = boost::out_edges(*v, _g);
 			GraphVertex target;
 			uint32 maxAddress = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list