summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-03-30 22:28:46 +0000
committerBob Wilson <bob.wilson@apple.com>2010-03-30 22:28:46 +0000
commitadb58e32cc2afcced85afb7d7b3938310683099f (patch)
treeff52a6a0d7dc8466bfff45aa5302c13d3a3956fc /clang/lib/CodeGen/CodeGenFunction.cpp
parent6f7fd28824f4ad6682732c9a81f9d0ffb38ff494 (diff)
downloadbcm5719-llvm-adb58e32cc2afcced85afb7d7b3938310683099f.tar.gz
bcm5719-llvm-adb58e32cc2afcced85afb7d7b3938310683099f.zip
Revert Mon Ping's 99930 due to broken llvm-gcc buildbots.
llvm-svn: 99949
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index f38d8a132f0..b863aff2361 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -495,14 +495,12 @@ void CodeGenFunction::EmitMemSetToZero(llvm::Value *DestPtr, QualType Ty) {
const llvm::Type *IntPtr = llvm::IntegerType::get(VMContext,
LLVMPointerWidth);
- Builder.CreateCall5(CGM.getMemSetFn(BP, IntPtr), DestPtr,
+ Builder.CreateCall4(CGM.getMemSetFn(), 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),
- llvm::ConstantInt::get(llvm::Type::getInt1Ty(VMContext),
- 0));
+ TypeInfo.second/8));
}
llvm::BlockAddress *CodeGenFunction::GetAddrOfLabel(const LabelStmt *L) {
OpenPOWER on IntegriCloud