You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2006/11/07 21:38:29 UTC

svn commit: r472239 - /incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp

Author: gshimansky
Date: Tue Nov  7 12:38:28 2006
New Revision: 472239

URL: http://svn.apache.org/viewvc?view=rev&rev=472239
Log:
Applied HARMONY-1873 std::sort crash in jitrino code generator

Tests passed on gentoo linux


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp?view=diff&rev=472239&r1=472238&r2=472239
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp Tue Nov  7 12:38:28 2006
@@ -45,7 +45,7 @@
     bool operator() (const Edge* e1, const Edge* e2) const { //true -> e1 is first
         double v1 = getEdgeExecCount(e1);
         double v2 = getEdgeExecCount(e2);
-        return   v1 > v2 ? true : (v1 < v2 ? false: e1 < e2);
+        return   v1 > v2;
     }
     static double getEdgeExecCount(const Edge* e) { 
         return e->getSourceNode()->getExecCount() * e->getEdgeProb();