Hello<br><br>The current svn revision fails to compile on windows using Visual Studio 2008.<br>I'm getting:<br><br>1>ScalarEvolutionExpander.cpp<br>1>F:\dev\llvm\include\llvm/Analysis/ScalarEvolutionExpander.h(29) : warning C4099: 'llvm::SCEVExpander' : type name first seen using 'class' now seen using 'struct'<br>
1>        F:\dev\llvm\include\llvm/Analysis/ScalarEvolution.h(216) : see declaration of 'llvm::SCEVExpander'<br>1>..\..\..\lib\Analysis\ScalarEvolutionExpander.cpp(446) : error C2075: 'RestArray' : array initialization needs curly braces<br>
1>..\..\..\lib\Analysis\ScalarEvolutionExpander.cpp(446) : error C2248: 'llvm::SCEVHandle::SCEVHandle' : cannot access private member declared in class 'llvm::SCEVHandle'<br>1>        F:\dev\llvm\include\llvm/Analysis/ScalarEvolution.h(152) : see declaration of 'llvm::SCEVHandle::SCEVHandle'<br>
1>        F:\dev\llvm\include\llvm/Analysis/ScalarEvolution.h(150) : see declaration of 'llvm::SCEVHandle'<br><div id=":1gm" class="ii gt">
<br>Attached you can find a patch which which makes the code compile on my machine.<br><br>Sincerely yours<br>Marius Wachtler<br><br>Index: lib/Analysis/ScalarEvolutionExpander.cpp<br>===================================================================<br>
--- lib/Analysis/ScalarEvolutionExpander.cpp    (revision 72444)<br>+++ lib/Analysis/ScalarEvolutionExpander.cpp    (working copy)<br>@@ -443,7 +443,7 @@<br>     // comments on expandAddToGEP for details.<br>     if (<a href="http://SE.TD">SE.TD</a>) {<br>
       SCEVHandle Base = S->getStart();<br>-      SCEVHandle RestArray[1] = Rest;<br>+      SCEVHandle RestArray[1] = { Rest };<br>       // Dig into the expression to find the pointer base for a GEP.<br>       ExposePointerBase(Base, RestArray[0], SE);<br>
       // If we found a pointer, expand the AddRec with a GEP.<br><br><br></div>