You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2009/01/06 13:36:59 UTC

svn commit: r731927 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32RegAlloc3.cpp

Author: tellison
Date: Tue Jan  6 04:36:59 2009
New Revision: 731927

URL: http://svn.apache.org/viewvc?rev=731927&view=rev
Log:
Add braces to resolve ambiguity for g++ compiler.
See report http://markmail.org/message/e72i2kjk2h3ioaey

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

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32RegAlloc3.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32RegAlloc3.cpp?rev=731927&r1=731926&r2=731927&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32RegAlloc3.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32RegAlloc3.cpp Tue Jan  6 04:36:59 2009
@@ -1260,10 +1260,12 @@
     {
         Opndx& opndz = graph.at(*i);
         if (opndz.ridx == opndx.ridx)
+        {
             if (opndz.opnd != NULL) //for operand nodes
                 alloc |= occupiedReg(opndx.opnd->getSize(), opndz.opnd->getSize(), opndz.alloc);
             else //for color nodes
                 alloc |= occupiedReg(opndx.opnd->getSize(), OpndSize_32, opndz.alloc);
+        }
     }
 
     if ((alloc = opndx.avail & ~alloc) == 0)