]> granicus.if.org Git - clang/commitdiff
Use the new Type::getInt8PtrTy method. This should probably be used in a lot
authorChris Lattner <sabre@nondot.org>
Tue, 13 Oct 2009 06:02:42 +0000 (06:02 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Oct 2009 06:02:42 +0000 (06:02 +0000)
more places in clang codegen now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83947 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index f802068b26d3444066b9aef14e96fa066d76c44b..10c10d9a8a3e3d1299f649c9519aa51cfbeab7fd 100644 (file)
@@ -448,7 +448,7 @@ unsigned CodeGenFunction::GetIDForAddrOfLabel(const LabelStmt *L) {
 }
 
 void CodeGenFunction::EmitMemSetToZero(llvm::Value *DestPtr, QualType Ty) {
-  const llvm::Type *BP = llvm::PointerType::getUnqual(llvm::Type::getInt8Ty(VMContext));
+  const llvm::Type *BP = llvm::Type::getInt8PtrTy(VMContext);
   if (DestPtr->getType() != BP)
     DestPtr = Builder.CreateBitCast(DestPtr, BP, "tmp");