We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4300fcf + e4dc531 commit f29ab0dCopy full SHA for f29ab0d
clang/lib/CodeGen/CodeGenFunction.h
@@ -1183,12 +1183,6 @@ class CodeGenFunction : public CodeGenTypeCache {
1183
QualType VarTy = LocalVD->getType();
1184
if (VarTy->isReferenceType()) {
1185
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());
1192
CGF.Builder.CreateStore(TempAddr.emitRawPointer(CGF), Temp);
1193
TempAddr = Temp;
1194
}
0 commit comments