diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-14 17:45:39 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-14 17:45:39 +0000 |
commit | e6e1933f31f5e75989e5f4871f7292e2bd1a007f (patch) | |
tree | 9ab69e0c5f28a864838d25785eb6b8753a288fda /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 512148fbeb54aab30d2ee4731add30b909cf7bb4 (diff) | |
download | llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.zip llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.tar.gz llvm-e6e1933f31f5e75989e5f4871f7292e2bd1a007f.tar.bz2 |
Change Intrinsic::getDeclaration and friends to take an ArrayRef.
llvm-svn: 135154
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 791d30c..d39ea84 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -683,7 +683,7 @@ static Value *HandleByValArgument(Value *Arg, Instruction *TheCall, Type *Tys[3] = {VoidPtrTy, VoidPtrTy, Type::getInt64Ty(Context)}; Function *MemCpyFn = Intrinsic::getDeclaration(Caller->getParent(), Intrinsic::memcpy, - Tys, 3); + Tys); Value *DestCast = new BitCastInst(NewAlloca, VoidPtrTy, "tmp", TheCall); Value *SrcCast = new BitCastInst(Arg, VoidPtrTy, "tmp", TheCall); |