When building on my x86_64 linux box: llvm[1]: Compiling TypeSerialization.cpp for Debug build /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h: In member function 'void llvm::Deserializer::BatchReadOwnedPtrs(unsigned int, T**, bool) [with T = clang::Expr]': StmtSerialization.cpp:210: instantiated from here /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h:219: error: cast from 'clang::Expr*' to 'llvm::SerializedPtrID' loses precision /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h: In member function 'void llvm::Deserializer::BatchReadOwnedPtrs(unsigned int, T**, bool) [with T = clang::Stmt]': StmtSerialization.cpp:225: instantiated from here /home/joel/svn/llvm/include/llvm/Bitcode/Deserialize.h:219: error: cast from 'clang::Stmt*' to 'llvm::SerializedPtrID' loses precision make[1]: *** [/home/joel/svn/llvm/tools/clang/AST/Debug/StmtSerialization.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/joel/svn/llvm/tools/clang/AST' make: *** [all] Error 1
I think the problem is SerializedPtrID is a typedef of "unsigned", so clang::Expr* is too big? Thanks! _______________________________________________ cfe-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
