summaryrefslogtreecommitdiffstats
path: root/llvm/examples/BrainF/BrainF.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/examples/BrainF/BrainF.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/examples/BrainF/BrainF.cpp')
-rw-r--r--llvm/examples/BrainF/BrainF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp
index 264afa28131..e8d87ebfe0d 100644
--- a/llvm/examples/BrainF/BrainF.cpp
+++ b/llvm/examples/BrainF/BrainF.cpp
@@ -57,7 +57,7 @@ void BrainF::header(LLVMContext& C) {
//declare void @llvm.memset.p0i8.i32(i8 *, i8, i32, i32, i1)
Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
- Tys, 2);
+ Tys);
//declare i32 @getchar()
getchar_func = cast<Function>(module->
OpenPOWER on IntegriCloud