<div>Hi!</div>
<div> </div>
<div>I updated LLVM from CVS today and run into the following error:</div>
<div> </div>
<div>/lib/CodeGen/MachOWriter.cpp: line 200: no match for function max(unsigned_int_32, unsigned int)</div>
<div> </div>
<div>the line is</div>
<div> </div>
<div>Sec.align = std::max(Sec.align, Align);</div>
<div> </div>
<div>where Sec.align is of type "unsigned_int_32" and Align is of "unsigned int".</div>
<div> </div>
<div>I use gcc-3.4.4 under cygwin. Сasting of the first parameter to simple unsigned type solved the problem (though casting of the second to unsigned_int_32 may be more correct solution).<br clear="all"></div>
<div>Thanks. I can put together a patch if necessary. Though, may be, it's the problem of my gcc only.</div>
<div> </div>
<div>Tony.</div>