mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
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:
parent
63a7513ac1
commit
b1beff0f0d
@ -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