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:
parent
f7511e4fe2
commit
66f1632de8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user