mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Change Intrinsic::getDeclaration and friends to take an ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -558,9 +558,8 @@ bool IntrinsicLowering::LowerToByteSwap(CallInst *CI) {
|
||||
return false;
|
||||
|
||||
// Okay, we can do this xform, do so now.
|
||||
Type *Tys[] = { Ty };
|
||||
Module *M = CI->getParent()->getParent()->getParent();
|
||||
Constant *Int = Intrinsic::getDeclaration(M, Intrinsic::bswap, Tys, 1);
|
||||
Constant *Int = Intrinsic::getDeclaration(M, Intrinsic::bswap, Ty);
|
||||
|
||||
Value *Op = CI->getArgOperand(0);
|
||||
Op = CallInst::Create(Int, Op, CI->getName(), CI);
|
||||
|
Reference in New Issue
Block a user