diff options
author | Mon P Wang <wangmp@apple.com> | 2010-03-30 21:02:45 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2010-03-30 21:02:45 +0000 |
commit | 3b5caa20652c43d00229bac972b78bee44a0ee9f (patch) | |
tree | bdb5adfac848bf3670b3e3630eb7b421d098fb49 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 5e40291d13ed2d7711235df947a2a18a925c7536 (diff) |
Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index b863aff236..f38d8a132f 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -495,12 +495,14 @@ void CodeGenFunction::EmitMemSetToZero(llvm::Value *DestPtr, QualType Ty) { const llvm::Type *IntPtr = llvm::IntegerType::get(VMContext, LLVMPointerWidth); - Builder.CreateCall4(CGM.getMemSetFn(), DestPtr, + Builder.CreateCall5(CGM.getMemSetFn(BP, IntPtr), DestPtr, llvm::Constant::getNullValue(llvm::Type::getInt8Ty(VMContext)), // TypeInfo.first describes size in bits. llvm::ConstantInt::get(IntPtr, TypeInfo.first/8), llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), - TypeInfo.second/8)); + TypeInfo.second/8), + llvm::ConstantInt::get(llvm::Type::getInt1Ty(VMContext), + 0)); } llvm::BlockAddress *CodeGenFunction::GetAddrOfLabel(const LabelStmt *L) { |