Displaying 1 result from an estimated 1 matches for "printgenericvalue".
2007 May 16
1
[LLVMdev] tiny compilation error with g++ 4.1.3
...Entering directory `/usr/src/Lang/llvm/_Obj64/lib/ExecutionEngine'
make[3]: Entering directory `/usr/src/Lang/llvm/_Obj64/lib/ExecutionEngine/Interpreter'
llvm[3]: Compiling Execution.cpp for Debug build
/usr/src/Lang/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp: In function 'void PrintGenericValue(const llvm::GenericValue&, const llvm::Type*)':
/usr/src/Lang/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1347: error: cast from 'void*' to 'unsigned int' loses precision
The trivial patch which works for me is to use intptr_t instead of unsigned, hence replacing th...