de-tmpify clang.

llvm-svn: 140637
This commit is contained in:
Benjamin Kramer
2011-09-27 21:06:10 +00:00
parent af136f71ec
commit 76399eb2ad
13 changed files with 90 additions and 97 deletions

View File

@@ -696,7 +696,7 @@ CodeGenFunction::EmitNullInitialization(llvm::Value *DestPtr, QualType Ty) {
cast<llvm::PointerType>(DestPtr->getType())->getAddressSpace();
llvm::Type *BP = Builder.getInt8PtrTy(DestAS);
if (DestPtr->getType() != BP)
DestPtr = Builder.CreateBitCast(DestPtr, BP, "tmp");
DestPtr = Builder.CreateBitCast(DestPtr, BP);
// Get size and alignment info for this aggregate.
std::pair<CharUnits, CharUnits> TypeInfo =