harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r452552 - /incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/ControlFlowGraph.h
Date Tue, 03 Oct 2006 15:54:35 GMT
Author: geirm
Date: Tue Oct  3 08:54:35 2006
New Revision: 452552

URL: http://svn.apache.org/viewvc?view=rev&rev=452552
Log:
HARMONY-1665

added 2 "ifs" for entry and exit nodes, to verify if the node is not null. If the node is
null, then return.

Ubuntu, smoke, c-unit, ~kernel


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/ControlFlowGraph.h

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/ControlFlowGraph.h
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/ControlFlowGraph.h?view=diff&rev=452552&r1=452551&r2=452552
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/ControlFlowGraph.h (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/shared/ControlFlowGraph.h Tue Oct
 3 08:54:35 2006
@@ -1667,9 +1667,14 @@
         if (isForward) {
             lastOrderingTraversalNumber = ++traversalNumber;
             postOrderCache.clear();
+            if (entryNode==NULL) {
+                return;
+            }
             startNode = entryNode;
         } else {
-            assert(exitNode!=NULL);
+            if (exitNode==NULL) {
+                return;
+            }
             startNode = exitNode;
         }
         currentPreNumber = currentPostNumber = 0;



Mime
View raw message