Skip to content

Commit f29ab0d

Browse files
authored
clang: Drop out of tree typed pointer handling (llvm#1002)
2 parents 4300fcf + e4dc531 commit f29ab0d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/CodeGen/CodeGenFunction.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,12 +1183,6 @@ class CodeGenFunction : public CodeGenTypeCache {
11831183
QualType VarTy = LocalVD->getType();
11841184
if (VarTy->isReferenceType()) {
11851185
Address Temp = CGF.CreateMemTemp(VarTy);
1186-
if (Temp.getElementType() != TempAddr.emitRawPointer(CGF)->getType())
1187-
Temp = Address(CGF.Builder.CreatePointerBitCastOrAddrSpaceCast(
1188-
Temp.emitRawPointer(CGF),
1189-
llvm::PointerType::get(CGF.getLLVMContext(),
1190-
/*AddressSpace=*/0)),
1191-
CGF.Int8Ty, TempAddr.getAlignment());
11921186
CGF.Builder.CreateStore(TempAddr.emitRawPointer(CGF), Temp);
11931187
TempAddr = Temp;
11941188
}

0 commit comments

Comments
 (0)