mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user