From: Alkis Evlogimenos Date: Sat, 30 Apr 2005 07:13:31 +0000 (+0000) Subject: Do not use deprecated APIs X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b1beff0f0d5422d6e7a26a92b691a75367a352fe;p=oota-llvm.git Do not use deprecated APIs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21639 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index 712ec0482c4..36f413a14f7 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -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);