From 66f1632de8baa0511a0e418fd78c2294dc537b7c Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Sat, 30 Apr 2005 07:13:31 +0000 Subject: [PATCH] Do not use deprecated APIs llvm-svn: 21639 --- lib/CodeGen/IntrinsicLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);