From: Chris Lattner Date: Wed, 1 Aug 2007 06:24:52 +0000 (+0000) Subject: update this to build with LLVM ToT X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf98651d4208f411b769a86976097683cbac36c3;p=clang update this to build with LLVM ToT git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40665 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGExpr.cpp b/CodeGen/CGExpr.cpp index 6d735e0b5e..a8a7b3608f 100644 --- a/CodeGen/CGExpr.cpp +++ b/CodeGen/CGExpr.cpp @@ -348,7 +348,7 @@ void CodeGenFunction::EmitStoreThroughLValue(RValue Src, LValue Dst, DstAddr, SrcAddr, SizeVal,llvm::ConstantInt::get(llvm::Type::Int32Ty, Align) }; - Builder.CreateCall(CGM.getMemCpyFn(), MemCpyOps, 4); + Builder.CreateCall(CGM.getMemCpyFn(), MemCpyOps, MemCpyOps+4); } @@ -624,7 +624,7 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E) { Args.push_back(ArgVal.getAggregateAddr()); } - llvm::Value *V = Builder.CreateCall(Callee, &Args[0], Args.size()); + llvm::Value *V = Builder.CreateCall(Callee, &Args[0], &Args[0]+Args.size()); if (V->getType() != llvm::Type::VoidTy) V->setName("call");