diff options
Diffstat (limited to 'clang/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | clang/CodeGen/CGExprAgg.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/CodeGen/CGExprAgg.cpp b/clang/CodeGen/CGExprAgg.cpp index 493d2790085..325ac2109eb 100644 --- a/clang/CodeGen/CGExprAgg.cpp +++ b/clang/CodeGen/CGExprAgg.cpp @@ -103,8 +103,7 @@ void AggExprEmitter::EmitAggregateClear(llvm::Value *DestPtr, QualType Ty) { DestPtr = Builder.CreateBitCast(DestPtr, BP, "tmp"); // Get size and alignment info for this aggregate. - std::pair<uint64_t, unsigned> TypeInfo = - CGF.getContext().getTypeInfo(Ty, SourceLocation()); + std::pair<uint64_t, unsigned> TypeInfo = CGF.getContext().getTypeInfo(Ty); // FIXME: Handle variable sized types. const llvm::Type *IntPtr = llvm::IntegerType::get(CGF.LLVMPointerWidth); @@ -132,8 +131,7 @@ void AggExprEmitter::EmitAggregateCopy(llvm::Value *DestPtr, SrcPtr = Builder.CreateBitCast(SrcPtr, BP, "tmp"); // Get size and alignment info for this aggregate. - std::pair<uint64_t, unsigned> TypeInfo = - CGF.getContext().getTypeInfo(Ty, SourceLocation()); + std::pair<uint64_t, unsigned> TypeInfo = CGF.getContext().getTypeInfo(Ty); // FIXME: Handle variable sized types. const llvm::Type *IntPtr = llvm::IntegerType::get(CGF.LLVMPointerWidth); |