summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IntrinsicLowering.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-07-14 17:45:39 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-07-14 17:45:39 +0000
commite6e1933f31f5e75989e5f4871f7292e2bd1a007f (patch)
tree9ab69e0c5f28a864838d25785eb6b8753a288fda /llvm/lib/CodeGen/IntrinsicLowering.cpp
parent512148fbeb54aab30d2ee4731add30b909cf7bb4 (diff)
downloadbcm5719-llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.tar.gz
bcm5719-llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.zip
Change Intrinsic::getDeclaration and friends to take an ArrayRef.
llvm-svn: 135154
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index a1166d026a5..3313181a619 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp
@@ -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);
OpenPOWER on IntegriCloud