1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Do not use deprecated APIs

llvm-svn: 21639
This commit is contained in:
Alkis Evlogimenos 2005-04-30 07:13:31 +00:00
parent f7511e4fe2
commit 66f1632de8

View File

@ -111,7 +111,7 @@ void DefaultIntrinsicLowering::AddPrototypes(Module &M) {
EnsureFunctionExists(M, "isunordered", I->arg_begin(), I->arg_end(), Type::BoolTy);
break;
case Intrinsic::sqrt:
if(I->abegin()->getType() == Type::FloatTy)
if(I->arg_begin()->getType() == Type::FloatTy)
EnsureFunctionExists(M, "sqrtf", I->arg_begin(), I->arg_end(), Type::FloatTy);
else
EnsureFunctionExists(M, "sqrt", I->arg_begin(), I->arg_end(), Type::DoubleTy);