From 824b958e6fb1236e92e4d07f3acf18fca107cdc0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 Nov 2008 16:42:48 +0000 Subject: reapply Sanjiv's patch to genericize memcpy/memset/memmove to take an arbitrary integer width for the count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59823 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/BrainF/BrainF.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index 86f2ea495d..32a14c4d53 100644 --- a/examples/BrainF/BrainF.cpp +++ b/examples/BrainF/BrainF.cpp @@ -53,7 +53,9 @@ void BrainF::header() { //Function prototypes //declare void @llvm.memset.i32(i8 *, i8, i32, i32) - Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset_i32); + const Type *Tys[] = { Type::Int32Ty }; + Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset, + Tys, 1); //declare i32 @getchar() getchar_func = cast(module-> -- cgit v1.2.3-18-g5258