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 | dd7eaad7d4ba1869092067f23c2a1d25529fb451 (patch) | |
tree | b3626de1b4f9ecb81fcfa87d03fda3a8b43126b9 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 9f2a365fe257e242e465f2ce8abe6b86bfd4dedc (diff) | |
download | bcm5719-llvm-dd7eaad7d4ba1869092067f23c2a1d25529fb451.tar.gz bcm5719-llvm-dd7eaad7d4ba1869092067f23c2a1d25529fb451.zip |
Use the new Type::getInt8PtrTy method. This should probably be used in a lot
more places in clang codegen now.
llvm-svn: 83947
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index f802068b26d..10c10d9a8a3 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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"); |