From d16c2cf1cafa413709aa487cbbd5dc392f1ba1ff Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 8 Feb 2011 08:22:06 +0000 Subject: Reorganize CodeGen{Function,Module} to eliminate the unfortunate Block{Function,Module} base class. Minor other refactorings. Fixed a few address-space bugs while I was there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125085 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprAgg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprAgg.cpp') diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 3a758a8102..ad62a3ba53 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -901,12 +901,12 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr, const llvm::PointerType *DPT = cast(DestPtr->getType()); const llvm::Type *DBP = - llvm::Type::getInt8PtrTy(VMContext, DPT->getAddressSpace()); + llvm::Type::getInt8PtrTy(getLLVMContext(), DPT->getAddressSpace()); DestPtr = Builder.CreateBitCast(DestPtr, DBP, "tmp"); const llvm::PointerType *SPT = cast(SrcPtr->getType()); const llvm::Type *SBP = - llvm::Type::getInt8PtrTy(VMContext, SPT->getAddressSpace()); + llvm::Type::getInt8PtrTy(getLLVMContext(), SPT->getAddressSpace()); SrcPtr = Builder.CreateBitCast(SrcPtr, SBP, "tmp"); if (const RecordType *RecordTy = Ty->getAs()) { -- cgit v1.2.3