forked from OSchip/llvm-project
[clang] Remove Address::deprecated() call in CGExprCXX.cpp
This commit is contained in:
parent
f755806813
commit
0e219af475
|
@ -2101,10 +2101,9 @@ void CodeGenFunction::EmitCXXDeleteExpr(const CXXDeleteExpr *E) {
|
||||||
GEP.push_back(Zero);
|
GEP.push_back(Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr = Address::deprecated(Builder.CreateInBoundsGEP(Ptr.getElementType(),
|
Ptr = Address(Builder.CreateInBoundsGEP(Ptr.getElementType(),
|
||||||
Ptr.getPointer(), GEP,
|
Ptr.getPointer(), GEP, "del.first"),
|
||||||
"del.first"),
|
ConvertTypeForMem(DeleteTy), Ptr.getAlignment());
|
||||||
Ptr.getAlignment());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(ConvertTypeForMem(DeleteTy) == Ptr.getElementType());
|
assert(ConvertTypeForMem(DeleteTy) == Ptr.getElementType());
|
||||||
|
|
Loading…
Reference in New Issue