llvm.org GIT mirror llvm / 6fb0d73
Get rid of warnings on Alpha git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22428 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
222222 synchronize.block(); // wait until other threads are at this point
223223 GenericValue gv = p->EE->runFunction(p->F, Args);
224224
225 return (void*) gv.IntVal;
225 return (void*) intptr_t(gv.IntVal);
226226 }
227227
228228 int main()
274274 std::cerr << "Could not join thread" << std::endl;
275275 return 1;
276276 }
277 std::cout << "Add1 returned " << (int) returnValue << std::endl;
277 std::cout << "Add1 returned " << intptr_t(returnValue) << std::endl;
278278
279279 result = pthread_join( fibThread1, &returnValue );
280280 if ( result != 0 ) {
281281 std::cerr << "Could not join thread" << std::endl;
282282 return 1;
283283 }
284 std::cout << "Fib1 returned " << (int) returnValue << std::endl;
284 std::cout << "Fib1 returned " << intptr_t(returnValue) << std::endl;
285285
286286 result = pthread_join( fibThread2, &returnValue );
287287 if ( result != 0 ) {
288288 std::cerr << "Could not join thread" << std::endl;
289289 return 1;
290290 }
291 std::cout << "Fib2 returned " << (int) returnValue << std::endl;
291 std::cout << "Fib2 returned " << intptr_t(returnValue) << std::endl;
292292
293293 return 0;
294294 }