Use the new Type::getInt8PtrTy method. This should probably be used in a lot

more places in clang codegen now.

llvm-svn: 83947
This commit is contained in:
Chris Lattner
2009-10-13 06:02:42 +00:00
parent 9f2a365fe2
commit dd7eaad7d4

View 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");