[cfe-commits] r40665 - /cfe/trunk/CodeGen/CGExpr.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 31 23:24:52 PDT 2007
Author: lattner
Date: Wed Aug 1 01:24:52 2007
New Revision: 40665
URL: http://llvm.org/viewvc/llvm-project?rev=40665&view=rev
Log:
update this to build with LLVM ToT
Modified:
cfe/trunk/CodeGen/CGExpr.cpp
Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=40665&r1=40664&r2=40665&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Wed Aug 1 01:24:52 2007
@@ -348,7 +348,7 @@
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 @@
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");
More information about the cfe-commits
mailing list