Do not use deprecated APIs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2005-04-30 07:13:31 +00:00
parent 63a7513ac1
commit b1beff0f0d

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);