diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-13 06:02:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-13 06:02:42 +0000 |
commit | 36afd38fb749ab34c8341a1dc70366bca904eaa3 (patch) | |
tree | 7d1faa3397c634a4e74d69dfeedaec0a3ac39d21 | |
parent | 59cbea9df80273de959261401d30758ded025255 (diff) |
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
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |