From 36afd38fb749ab34c8341a1dc70366bca904eaa3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 Oct 2009 06:02:42 +0000 Subject: [PATCH] Use the new Type::getInt8PtrTy method. This should probably be used in a lot 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index f802068b26..10c10d9a8a 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -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"); -- 2.40.0