Build fails on windows using VS2008


The current svn revision fails to compile on windows using Visual Studio 2008.
I’m getting:

1>F:\dev\llvm\include\llvm/Analysis/ScalarEvolutionExpander.h(29) : warning C4099: ‘llvm::SCEVExpander’ : type name first seen using ‘class’ now seen using ‘struct’
1> F:\dev\llvm\include\llvm/Analysis/ScalarEvolution.h(216) : see declaration of ‘llvm::SCEVExpander’
1>…....\lib\Analysis\ScalarEvolutionExpander.cpp(446) : error C2075: ‘RestArray’ : array initialization needs curly braces
1>…....\lib\Analysis\ScalarEvolutionExpander.cpp(446) : error C2248: ‘llvm::SCEVHandle::SCEVHandle’ : cannot access private member declared in class ‘llvm::SCEVHandle’
1> F:\dev\llvm\include\llvm/Analysis/ScalarEvolution.h(152) : see declaration of ‘llvm::SCEVHandle::SCEVHandle’
1> F:\dev\llvm\include\llvm/Analysis/ScalarEvolution.h(150) : see declaration of ‘llvm::SCEVHandle’

Attached you can find a patch which which makes the code compile on my machine.

Sincerely yours
Marius Wachtler

Index: lib/Analysis/ScalarEvolutionExpander.cpp

arrayInit.patch (631 Bytes)