aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2010-03-30 21:02:45 +0000
committerMon P Wang <wangmp@apple.com>2010-03-30 21:02:45 +0000
commit231e99743a1ca6220674f5feff8723d3eb2636d8 (patch)
tree27f02bd0d5a7a665ddce194911b901379df4d718 /clang/lib/CodeGen/CodeGenFunction.cpp
parent7460571381de44cf752265e6351bd4ae4d0b06d1 (diff)
downloadllvm-231e99743a1ca6220674f5feff8723d3eb2636d8.zip
llvm-231e99743a1ca6220674f5feff8723d3eb2636d8.tar.gz
llvm-231e99743a1ca6220674f5feff8723d3eb2636d8.tar.bz2
Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset
llvm-svn: 99930
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index b863aff..f38d8a1 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/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) {