My Configuration:
Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: VC Express
Microsoft Visual C++ 2008 91909-152-0000052-60589
Microsoft Visual C++ 2008
The Problem:
Followed steps on http://clang.llvm.org/get_started.html. Had to change the svn co lines slightly.
Build mostly goes OK except for LLVMCodeGen:
1>…\llvm\tools\clang\lib\CodeGen\CGDebugInfo.cpp(67) : error C2784: ‘cast_retty<X,Y*>::ret_type llvm::dyn_cast_or_null(Y *)’ : could not deduce template argument for ‘Y *’ from ‘llvm::WeakVH’
Refers to source line: return llvm::DIDescriptor(dyn_cast_or_nullllvm::MDNode(I->second));
I: llvm::DenseMap<const Decl *, llvm::WeakVH>::iterator
1>…\llvm\tools\clang\lib\CodeGen\CGDebugInfo.cpp(1484) : error C2784: ‘cast_retty<X,Y*>::ret_type llvm::dyn_cast_or_null(Y *)’ : could not deduce template argument for ‘Y *’ from ‘llvm::WeakVH’
Refers to source line: llvm::DIDescriptor SP(dyn_cast_or_nullllvm::MDNode(FI->second));
FI : llvm::DenseMap<const FunctionDecl *, llvm::WeakVH>::iterator
Looks like compiler can’t make a Y* from llvmWeakVH.
Any ideas?
Thanks,
Rolf